From: Andrew Deason Date: Thu, 4 Oct 2012 20:49:56 +0000 (-0500) Subject: DAFS: VRS_r with VOL_SALVAGE_NO_OFFLINE in attach2 X-Git-Tag: upstream/1.6.6_pre2^2~121 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b645fd18a2686d0a098261dc4a1a5b54a44e8adf;p=packages%2Fo%2Fopenafs.git DAFS: VRS_r with VOL_SALVAGE_NO_OFFLINE in attach2 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 Reviewed-by: Derrick Brashear (cherry picked from commit 3237543afafae7191635fd8e8cada1f95e8abcff) Change-Id: I44a9a56b849bc3c1473b290961190a47ad45f5b5 Reviewed-on: http://gerrit.openafs.org/9283 Reviewed-by: Derrick Brashear Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Stephan Wiesand Reviewed-by: Mark Vitale Tested-by: BuildBot --- diff --git a/src/vol/volume.c b/src/vol/volume.c index bd407cca1..44e4238e4 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -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