From 4b93c42513785d1094c5336b5c9cc4add1b89c5e Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Dec 2011 12:00:52 -0500 Subject: [PATCH] vol: allow clones of readonly volumes allow writing of data where it's not user data we're changing (e.g. allow a vnode to be marked cloned in the vnode index) Change-Id: If3338ab0474ddbfe895b705217d61c054c4cb696 Reviewed-on: http://gerrit.openafs.org/6251 Tested-by: BuildBot Reviewed-by: Alistair Ferguson Reviewed-by: Derrick Brashear --- src/vol/clone.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vol/clone.c b/src/vol/clone.c index 5217a2cd3..b3a3abdf3 100644 --- a/src/vol/clone.c +++ b/src/vol/clone.c @@ -165,7 +165,12 @@ DoCloneIndex(Volume * rwvp, Volume * clvp, VnodeClass class, int reclone) afs_ino_str_t stmp; struct VnodeClassInfo *vcp = &VnodeClassInfo[class]; - int ReadWriteOriginal = VolumeWriteable(rwvp); + /* + * The fileserver's -readonly switch should make this false, but we + * have no useful way to know in the volserver. + * This doesn't make client data mutable. + */ + int ReadWriteOriginal = 1; /* Correct number of files in volume: this assumes indexes are always cloned starting with vLarge */ -- 2.39.5