From: Derrick Brashear Date: Tue, 13 Dec 2011 16:22:38 +0000 (-0500) Subject: volser: allow cloning non-rw volumes X-Git-Tag: upstream/1.8.0_pre1^2~2748 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f1de04f3b35e91923efddca57e744b2138619223;p=packages%2Fo%2Fopenafs.git volser: allow cloning non-rw volumes remove EROFS error which is the only thing preventing a working clone on a non-RW. Change-Id: Ic3d4d07519188712e9a38267fc74ebd1eaef7d8a Reviewed-on: http://gerrit.openafs.org/6249 Reviewed-by: Jeffrey Altman Reviewed-by: Alistair Ferguson Tested-by: BuildBot Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index a906b5ff8..cdf8ce895 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -753,12 +753,6 @@ VolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId, purgevp = NULL; } originalvp = tt->volume; - if ((V_type(originalvp) == backupVolume) - || (V_type(originalvp) == readonlyVolume)) { - Log("1 Volser: Clone: The volume to be cloned must be a read/write; aborted\n"); - error = EROFS; - goto fail; - } if ((V_destroyMe(originalvp) == DESTROY_ME) || !V_inService(originalvp)) { Log("1 Volser: Clone: Volume %d is offline and cannot be cloned\n", V_id(originalvp));