]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
dafs: honor salvageserver -salvagedirs
authorMichael Meffie <mmeffie@sinenomine.net>
Sun, 6 Nov 2016 20:31:22 +0000 (14:31 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 30 Nov 2016 16:41:54 +0000 (11:41 -0500)
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 <mvitale@sinenomine.net>
Tested-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/vol/salvaged.c

index 753fc18ae91dbd4532c8fac06e48eafcaced8a3e..23239d731be98247d61feed21f99b96cb8aa7082 100644 (file)
@@ -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) {