From 9e66234951cca3ca77e94ab431f739e85017a23a Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Sun, 6 Nov 2016 14:31:22 -0600 Subject: [PATCH] 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 --- src/vol/salvaged.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vol/salvaged.c b/src/vol/salvaged.c index 753fc18ae..23239d731 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) { -- 2.39.5