From ee2811b01f3c34d3f07802ff88e2577da1caef6d Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 30 Sep 2010 12:39:22 -0500 Subject: [PATCH] viced: Allow checkout of VOL_STATE_DELETED volumes The fileserver allows nonexistent volumes to be checked out. Since VOL_STATE_DELETED volumes conceptually do not exist, we should also allow them to be checked out. Reviewed-on: http://gerrit.openafs.org/2873 Reviewed-by: Tom Keiser Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 88fc9ada4cfaee354199480916d139400ee0ef5b) Change-Id: I24bf2100bf57a27323cd0e9e5081e767e67c944e Reviewed-on: http://gerrit.openafs.org/4261 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/vol/fssync-server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vol/fssync-server.c b/src/vol/fssync-server.c index 74cc0f8ed..edd0910be 100644 --- a/src/vol/fssync-server.c +++ b/src/vol/fssync-server.c @@ -968,6 +968,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res) case VOL_STATE_PREATTACHED: case VOL_STATE_SALVAGING: case VOL_STATE_ERROR: + case VOL_STATE_DELETED: /* register the volume operation metadata with the volume * * if the volume is currently pre-attached, attach2() @@ -995,6 +996,7 @@ FSYNC_com_VolOff(FSSYNC_VolOp_command * vcom, SYNC_response * res) case VOL_STATE_PREATTACHED: case VOL_STATE_SALVAGING: case VOL_STATE_ERROR: + case VOL_STATE_DELETED: /* register the volume operation metadata with the volume * * if the volume is currently pre-attached, attach2() -- 2.39.5