diff options
author | Jeff Cody <jcody@redhat.com> | 2012-09-25 12:29:39 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-28 17:51:47 +0200 |
commit | 870f5681c9dbafc738082b1fd48e0cc013bf43c7 (patch) | |
tree | 1bc7e51832d85827111a3d710e692b83b587d7ce /event_notifier.c | |
parent | 946d58be1533bf843b499df12e1d9f97b28245c8 (diff) | |
download | qemu-870f5681c9dbafc738082b1fd48e0cc013bf43c7.tar.gz |
block: after creating a live snapshot, make old image read-only
Currently, after a live snapshot of a drive, the image that has
been 'demoted' to be below the new active layer remains r/w.
This patch reopens it read-only.
Note that we do not check for error on the reopen(), because we
will not abort the snapshots if the reopen fails.
This patch depends on the bdrv_reopen() series.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'event_notifier.c')
0 files changed, 0 insertions, 0 deletions