vos: convertROtoRW may create 2nd RW on a fileserver
authorMark Vitale <mvitale@sinenomine.net>
Thu, 2 Aug 2012 22:37:05 +0000 (18:37 -0400)
committerDerrick Brashear <shadow@dementix.org>
Thu, 9 Aug 2012 15:05:32 +0000 (08:05 -0700)
commit0c77c0acabe0a0588ab0a9efab0124ee1e15ef6a
tree36bbff321419a145ab0b0558d9aec2ecebd80dd2
parent9cd983799e622c9acf5dd6e0b9ae3a3a75eaa8ce
vos: convertROtoRW may create 2nd RW on a fileserver

If an RW is already present on disk on the target server (any partition),
'vos convertROtoRW' will still convert the RO, creating a second RW on the server.
Detect this and refuse to convert the RO by returning EXDEV (invalid cross-device link).

Change-Id: Ide15a7c39f2a975fd8597e497094b6a67b448e4f
Reviewed-on: http://gerrit.openafs.org/7934
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/namei_ops.c