OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2854-g3c489db
Gerrit Code Review
gerrit@openafs.org
Wed, 22 Aug 2012 12:25:41 -0700 (PDT)
The following commit has been merged in the master branch:
commit 3c489db55811dfe3fdf5e555bf229989e5b58aa6
Author: Mark Vitale <mvitale@sinenomine.net>
Date: Mon Aug 20 17:39:06 2012 -0400
vos: convertROtoRW susceptible to VLDB changes during override prompt
vos convertROtoRW obtains a VLDB entry, then peforms some setup logic
(including a possible user prompt) before obtaining a volume lock.
This exposes the code to possible time-of-check/time-of-use issues.
After obtaining the volume lock, get a second copy of the VLDB entry
and compare it to the first copy; if it has changed, fail the conversion
with an error message asking the user to re-issue the vos convertROtoRW
command.
Change-Id: I9c1a634cea2e22188869d54b00b7831aed12b1cd
Reviewed-on: http://gerrit.openafs.org/8008
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/volser/vos.c | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository