From f1de04f3b35e91923efddca57e744b2138619223 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Dec 2011 11:22:38 -0500 Subject: [PATCH] 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 --- src/volser/volprocs.c | 6 ------ 1 file changed, 6 deletions(-) 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)); -- 2.39.5