diff options
author | Matthew Booth <mbooth@redhat.com> | 2010-10-28 15:19:14 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-28 16:47:06 +0100 |
commit | f2460699ab7f972b1981d072164a04820c52b0c6 (patch) | |
tree | e91d6c4db22202aa57177a0034a74be443d92d82 /po | |
parent | 38af2eaceb4c8e9d675835bcd6e598ccb67daf0f (diff) | |
download | libguestfs-f2460699ab7f972b1981d072164a04820c52b0c6.tar.gz libguestfs-f2460699ab7f972b1981d072164a04820c52b0c6.tar.xz libguestfs-f2460699ab7f972b1981d072164a04820c52b0c6.zip |
Ensure atomic creation of a cached appliance
Cached appliances are discovered by their predictable path. Previously we were
creating a cached appliance directly in this predictable path. This had at least
2 undesirable effects:
* Interrupting appliance creation would leave a corrupt appliance
* 2 processes could simultaneously attempt to create the same appliance, causing
corruption.
This patch causes the cached appliance to be created in a temporary directory,
and then renamed to the predictable path. As rename is an atomic operation, this
makes the whole creation atomic.
This patch also changes the predictable path to have a prefix of 'guestfs.'.
This will make it simpler for system administrators to clean up old cached
appliances.
This patch resolves RHBZ#639405
Diffstat (limited to 'po')
-rw-r--r-- | po/POTFILES.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in index 970068dd..699e90bc 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -111,6 +111,7 @@ perl/lib/Sys/Guestfs/Lib.pm php/extension/guestfs_php.c python/guestfs-py.c regressions/rhbz501893.c +regressions/test-launch-race.pl regressions/test-lvm-mapping.pl regressions/test-noexec-stack.pl ruby/ext/guestfs/_guestfs.c |