]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DAFS: VRS_r with VOL_SALVAGE_NO_OFFLINE in attach2
authorAndrew Deason <adeason@sinenomine.net>
Thu, 4 Oct 2012 20:49:56 +0000 (15:49 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 29 Aug 2013 06:27:27 +0000 (23:27 -0700)
One caller of VRequestSalvage_r in attach2 was not passing the
VOL_SALVAGE_NO_OFFLINE flag. This really should be passed for every
place that manually sets vp->nUsers = 0, since then the VPutVolume_r
handlers will never fire.

Reviewed-on: http://gerrit.openafs.org/8203
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 3237543afafae7191635fd8e8cada1f95e8abcff)

Change-Id: I44a9a56b849bc3c1473b290961190a47ad45f5b5
Reviewed-on: http://gerrit.openafs.org/9283
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/volume.c

index bd407cca18bc3d4ee62598ecea35d321119f09c7..44e4238e446a24216f2daa227e4767d981cecfb9 100644 (file)
@@ -3456,7 +3456,7 @@ attach2(Error * ec, VolId volumeId, char *path, struct DiskPartition64 *partp,
 #ifdef AFS_DEMAND_ATTACH_FS
                error_state = VOL_STATE_ERROR;
                /* see if we can recover */
-               VRequestSalvage_r(ec, vp, SALVSYNC_NEEDED, 0 /*flags*/);
+               VRequestSalvage_r(ec, vp, SALVSYNC_NEEDED, VOL_SALVAGE_NO_OFFLINE);
 #endif
            }
 #ifdef AFS_DEMAND_ATTACH_FS