From: Michael Meffie Date: Sun, 6 Nov 2016 20:31:22 +0000 (-0600) Subject: dafs: honor salvageserver -salvagedirs X-Git-Tag: openafs-stable-1_8_0pre1~14 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=9e66234951cca3ca77e94ab431f739e85017a23a dafs: honor salvageserver -salvagedirs Do not ignore the -salvagedirs option when given to the salvageserver. When the salvageserver is running with this option, all directories will be rebuilt by salvages spawned by the dafs salvageserver, including all demand attach salvages and salvages of individual volumes initiated by bos salvage. This does not affect the whole partition salvages initiated by bos salvage -all. Change-Id: I4dd515ffa8f962c61e922217bee20bbd88bcd534 Reviewed-on: https://gerrit.openafs.org/12456 Reviewed-by: Mark Vitale Tested-by: Mark Vitale Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/vol/salvaged.c b/src/vol/salvaged.c index 753fc18..23239d7 100644 --- a/src/vol/salvaged.c +++ b/src/vol/salvaged.c @@ -212,6 +212,7 @@ handleit(struct cmd_syndesc *opts, void *arock) cmd_OptionAsFlag(opts, OPT_inodes, &ListInodeOption); cmd_OptionAsFlag(opts, OPT_oktozap, &OKToZap); cmd_OptionAsFlag(opts, OPT_rootinodes, &ShowRootFiles); + cmd_OptionAsFlag(opts, OPT_salvagedirs, &RebuildDirs); cmd_OptionAsFlag(opts, OPT_blockreads, &forceR); if (cmd_OptionAsString(opts, OPT_parallel, &optstring) == 0) { if (strncmp(optstring, "all", 3) == 0) {