diff options
| author | Alberto Garcia | 2016-09-15 16:52:59 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-09-23 13:36:10 +0200 |
| commit | 38b5e4c3dc6d713eae340341ee139c12d5c1a21e (patch) | |
| tree | 129be5eaa9f5f84a2be5d9fd37445aec981fab2c | |
| parent | tests: allow to specify list of formats to test for check-block.sh (diff) | |
| download | qemu-38b5e4c3dc6d713eae340341ee139c12d5c1a21e.tar.gz qemu-38b5e4c3dc6d713eae340341ee139c12d5c1a21e.tar.xz qemu-38b5e4c3dc6d713eae340341ee139c12d5c1a21e.zip | |
block: Remove bdrv_is_snapshot
This is unnecessary and has been unused since 5433c24f0f9306c82ad9bcc.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
| -rw-r--r-- | block.c | 5 | ||||
| -rw-r--r-- | include/block/block.h | 1 |
2 files changed, 0 insertions, 6 deletions
@@ -3013,11 +3013,6 @@ bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag) return false; } -int bdrv_is_snapshot(BlockDriverState *bs) -{ - return !!(bs->open_flags & BDRV_O_SNAPSHOT); -} - /* backing_file can either be relative, or absolute, or a protocol. If it is * relative, it must be relative to the chain. So, passing in bs->filename * from a BDS as backing_file should not be done, as that may be relative to diff --git a/include/block/block.h b/include/block/block.h index ffecebfb3a..f374e1a725 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -414,7 +414,6 @@ void bdrv_get_full_backing_filename_from_filename(const char *backed, const char *backing, char *dest, size_t sz, Error **errp); -int bdrv_is_snapshot(BlockDriverState *bs); int path_has_protocol(const char *path); int path_is_absolute(const char *path); |
