diff options
author | Jeff Cody <jcody@redhat.com> | 2012-09-20 15:13:25 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-24 15:15:12 +0200 |
commit | eeb6b45d48800e96f67ef2a5c80332557fd45ddb (patch) | |
tree | 6923fc62d70bd600c12d9b3dd564cabcb524f738 /qemu-coroutine.c | |
parent | 3d1807ac6707773526b193f296e72c6c86969bf7 (diff) |
block: raw-posix image file reopen
This is derived from the Supriya Kannery's reopen patches.
This contains the raw-posix driver changes for the bdrv_reopen_*
functions. All changes are staged into a temporary scratch buffer
during the prepare() stage, and copied over to the live structure
during commit(). Upon abort(), all changes are abandoned, and the
live structures are unmodified.
The _prepare() will create an extra fd - either by means of a dup,
if possible, or opening a new fd if not (for instance, access
control changes). Upon _commit(), the original fd is closed and
the new fd is used. Upon _abort(), the duplicate/new fd is closed.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-coroutine.c')
0 files changed, 0 insertions, 0 deletions