diff options
author | Jeff Cody <jcody@redhat.com> | 2014-02-17 11:11:12 -0500 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-02-28 18:59:06 +0100 |
commit | adccfbcd6020e928db93b2b4faf0dbd05ffbe016 (patch) | |
tree | d4968752e491599386f3d43cadc2c8a2b8b48e4c /dump.c | |
parent | 1b37b3442f78a77844fdaf7f53e5f04e4ce8f1d6 (diff) |
block: gluster - add reopen support.
Gluster does parse open flags in its .bdrv_open() implementation,
and the .bdrv_reopen_* implementations need to do the same.
A new gluster connection to the image file to be created is established
in the .bdrv_reopen_prepare(), and the image file opened with the new
flags.
If this is successful, then the old image file is closed, and the
old connection torn down. The relevant structure pointers in the gluster
state structure are updated to the new connection.
If it is not successful, then the new file handle and connection is
abandoned (if it exists), while the old connection is not modified at
all.
With reopen supported, block-commit (and offline commit) is now also
supported for image files whose base image uses the native gluster
protocol driver.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'dump.c')
0 files changed, 0 insertions, 0 deletions