From 5a9347c6730ff6d68bba30b24f80cd90a6671a20 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Wed, 3 May 2017 00:35:37 +0800 Subject: block: Add, parse and store "force-share" option Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- include/block/block.h | 1 + include/block/block_int.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include/block') diff --git a/include/block/block.h b/include/block/block.h index 9fa0f23..877fbb0 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -109,6 +109,7 @@ typedef struct HDGeometry { #define BDRV_OPT_CACHE_NO_FLUSH "cache.no-flush" #define BDRV_OPT_READ_ONLY "read-only" #define BDRV_OPT_DISCARD "discard" +#define BDRV_OPT_FORCE_SHARE "force-share" #define BDRV_SECTOR_BITS 9 diff --git a/include/block/block_int.h b/include/block/block_int.h index 8773940..1b4d08e 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -518,6 +518,7 @@ struct BlockDriverState { bool valid_key; /* if true, a valid encryption key has been set */ bool sg; /* if true, the device is a /dev/sg* */ bool probed; /* if true, format was probed rather than specified */ + bool force_share; /* if true, always allow all shared permissions */ BlockDriver *drv; /* NULL means no media */ void *opaque; -- cgit v1.1