DAFS: Request salvage on detach for volser
authorAndrew Deason <adeason@sinenomine.net>
Fri, 8 Apr 2011 18:00:15 +0000 (13:00 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 11 Apr 2011 03:50:40 +0000 (20:50 -0700)
commitde0c72bf7c7d284f4d15d99c79b39e0c97f1a122
tree032bbb39514c223f6ae67722d4af7e50e1805db3
parent399655e3df3bf30d7878dec70402fc0021cae752
DAFS: Request salvage on detach for volser

When the volserver notices that a volume needs salvaging, mark
V_needsSalvaged. So when we VDetachVolume the volume, we can then just
request the salvage in the volume package.

Fix the VolClone salvaging code to do this as well, instead of using
the vol-private VRequestSalvage_r interface.

Change-Id: I9d48e4ea18fe4e3e2e1dc38593db4beb5ad79a84
Reviewed-on: http://gerrit.openafs.org/4452
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/volume.c
src/volser/dumpstuff.c
src/volser/volprocs.c