diff options
Diffstat (limited to 'xlators/features/qemu-block/src/qemu-block.h')
| -rw-r--r-- | xlators/features/qemu-block/src/qemu-block.h | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/features/qemu-block/src/qemu-block.h b/xlators/features/qemu-block/src/qemu-block.h index a91adb1ed..55e7c23ac 100644 --- a/xlators/features/qemu-block/src/qemu-block.h +++ b/xlators/features/qemu-block/src/qemu-block.h @@ -36,15 +36,16 @@  #define QB_XATTR_KEY_MAX 64 -#define QB_XATTR_VAL_MAX 32 +#define QB_XATTR_VAL_MAX 64  typedef struct qb_inode {  	char fmt[QB_XATTR_VAL_MAX]; /* this is only the format, not "format:size" */  	size_t size; /* virtual size in bytes */ -	char *size_str; /* pointer into fmt[] after ":" where size begins */  	BlockDriverState *bs;  	int refcnt; +	uuid_t backing_gfid; +	char *backing_fname;  } qb_inode_t; @@ -53,6 +54,7 @@ typedef struct qb_conf {  	struct syncenv *env;  	char qb_xattr_key[QB_XATTR_KEY_MAX];  	char *default_password; +	inode_t *root_inode;  } qb_conf_t; @@ -71,6 +73,7 @@ void qb_local_free (xlator_t *this, qb_local_t *local);  int qb_coroutine (call_frame_t *frame, synctask_fn_t fn);  inode_t *qb_inode_from_filename (const char *filename);  int qb_inode_to_filename (inode_t *inode, char *filename, int size); +int qb_format_extract (xlator_t *this, char *format, inode_t *inode);  qb_inode_t *qb_inode_ctx_get (xlator_t *this, inode_t *inode);  | 
