]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-clone-dont-hold-vol-lock-20070516
authorDerrick Brashear <shadow@dementia.org>
Fri, 18 May 2007 06:55:13 +0000 (06:55 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 18 May 2007 06:55:13 +0000 (06:55 +0000)
same deal as purge. a transaction on the volume outstanding holds it. we don't n
eed to preclude all access

(cherry picked from commit aa5d46b71b3700d6256f47237fadf0a4829daee6)

src/vol/clone.c

index aedee9ecece211c38a504a6716fb6e09ac94d546..a91a10789b891823014e14d6d7b2056c4d343d2f 100644 (file)
@@ -403,15 +403,7 @@ DoCloneIndex(Volume * rwvp, Volume * clvp, VnodeClass class, int reclone)
 }
 
 void
-CloneVolume(Error * error, Volume * original, Volume * new, Volume * old)
-{
-    VOL_LOCK;
-    CloneVolume_r(error, original, new, old);
-    VOL_UNLOCK;
-}
-
-void
-CloneVolume_r(Error * rerror, Volume * original, Volume * new, Volume * old)
+CloneVolume(Error * rerror, Volume * original, Volume * new, Volume * old)
 {
     afs_int32 code, error = 0;
     afs_int32 reclone;
@@ -426,7 +418,7 @@ CloneVolume_r(Error * rerror, Volume * original, Volume * new, Volume * old)
     if (code)
        ERROR_EXIT(code);
 
-    code = CopyVolumeHeader_r(&V_disk(original), &V_disk(new));
+    code = CopyVolumeHeader(&V_disk(original), &V_disk(new));
     if (code)
        ERROR_EXIT(code);