blockdev: unset inappropriate flags when changing medium
authorAlyssa Milburn <fuzzie@fuzzie.org>
Sat, 6 Feb 2016 13:36:18 +0000 (13:36 +0000)
committerMax Reitz <mreitz@redhat.com>
Mon, 22 Feb 2016 15:54:14 +0000 (16:54 +0100)
commit156abc2f901617834307d93f3c066250957f75b1
treee56698026fe837593a7af131e63aef7ac23d02e8
parentd310d85bf4472b6af9ff0235d397014dad713b8c
blockdev: unset inappropriate flags when changing medium

Most importantly, this removes BDRV_O_TEMPORARY, to avoid unlink()ing an
image which replaces a snapshotted one.

Signed-off-by: Alyssa Milburn <fuzzie@fuzzie.org>
Message-id: 20160206133618.GA16635@li141-249.members.linode.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
blockdev.c