From: Andrew Deason Date: Wed, 2 Mar 2011 21:02:40 +0000 (-0600) Subject: DAFS: Allow LEAVE_OFF for DELETED volumes X-Git-Tag: upstream/1.8.0_pre1^2~4112 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ddf5ae4f746f2b5e522e10cfcacb6225499e7956;p=packages%2Fo%2Fopenafs.git DAFS: Allow LEAVE_OFF for DELETED volumes When a volume is VOL_STATE_DELETED, it effectively does not exist to other programs over FSSYNC. So, do not prevent someone from issuing a FSYNC_VOL_LEAVE_OFF for a VOL_STATE_DELETED volume. Change-Id: Ifb8f5437c7f6888bc06968297d841072d1f3316a Reviewed-on: http://gerrit.openafs.org/4119 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/vol/fssync-server.c b/src/vol/fssync-server.c index d7f516a77..8e2c088f7 100644 --- a/src/vol/fssync-server.c +++ b/src/vol/fssync-server.c @@ -727,7 +727,7 @@ FSYNC_com_VolOn(FSSYNC_VolOp_command * vcom, SYNC_response * res) if (vcom->hdr->command == FSYNC_VOL_LEAVE_OFF) { /* nothing much to do if we're leaving the volume offline */ #ifdef AFS_DEMAND_ATTACH_FS - if (vp) { + if (vp && V_attachState(vp) != VOL_STATE_DELETED) { if (FSYNC_partMatch(vcom, vp, 1)) { if ((V_attachState(vp) == VOL_STATE_UNATTACHED) || (V_attachState(vp) == VOL_STATE_PREATTACHED)) {