]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Make bdrv_is_writable() public
authorMax Reitz <mreitz@redhat.com>
Wed, 6 Jun 2018 19:37:00 +0000 (21:37 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:06 +0000 (20:45 -0500)
commit62891cad12cbc50127df0e077485f7ded84307ab
treef7fc5b051d88c529179346574099256015025b8f
parent5d639531b7f6814c79c992f3753be6e8b34acb6f
block: Make bdrv_is_writable() public

This is a useful function for the whole block layer, so make it public.
At the same time, users outside of block.c probably do not need to make
use of the reopen functionality, so rename the current function to
bdrv_is_writable_after_reopen() create a new bdrv_is_writable() function
that just passes NULL to it for the reopen queue.

Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180606193702.7113-2-mreitz@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit cc022140972f8b6ac3973c12ccf9dd6b1d2fd200)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
include/block/block.h