From da78610b266a04bee6674339300495a7ad21f015 Mon Sep 17 00:00:00 2001 From: Jacob Thebault-Spieker Date: Tue, 19 Jul 2011 09:02:49 -0700 Subject: [PATCH] remove check for disallowing clones of backup or ro volumes removes the if-statement ensuring that the volume being cloned is not a backup volume, nor a read-only volume. This allows clones from any type of volume to a given volume. Parent volume meta-data is maintained, only the cloneId value changes. Reviewed-on: http://gerrit.openafs.org/5046 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 4e1a65ba7edec519acc67f0dcf2237a0f26e92aa) Change-Id: Ibda6a8a12804fc35890c99ada6d711e25a50a6c8 Reviewed-on: http://gerrit.openafs.org/5724 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-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 13ad8dc3c..46f1e8aec 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -904,12 +904,6 @@ VolReClone(struct rx_call *acid, afs_int32 atrans, afs_int32 cloneId) TSetRxCall(tt, acid, "ReClone"); 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