vvfat: Fix inherit_options flags
PATCH 1/1 vvfat: Fix inherit_options flags
Overriding flags violates the precedence rules of bdrv_reopen_queue_child. Just like the read-only option, no-flush should be put into the options. The same is done in bdrv_temp_snapshot_options.
--- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/vvfat.c +1 -1
@@ -3129,7 +3129,7 @@ static void vvfat_qcow_options(int *child_flags, QDict *child_options, int parent_flags, QDict *parent_options) { qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); - *child_flags =BDRV_O_NO_FLUSH ; +qdict_set_default_str (child_options,BDRV_OPT_CACHE_NO_FLUSH ,"on" ); } static const BdrvChildRole child_vvfat_qcow = {
Signature · 1 line
2.14.3
Quoted 10 lines · Fam Zheng
Overriding flags violates the precedence rules of
bdrv_reopen_queue_child. Just like the read-only option, no-flush should be put into the options. The same is done inbdrv_temp_snapshot_options.Reported-by Stefan Hajnoczi <[email protected]Signed-off-by Fam Zheng <[email protected]>--- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
block/vvfat.c +1
-1@@ -3129,7 +3129,7 @@ static void vvfat_qcow_options(int *child_flags, QDict *child_options, int parent_flags, QDict *parent_options) { qdict_set_default_str(child_options, BDRV_OPT_READ_ONLY, "off"); - *child_flags =BDRV_O_NO_FLUSH ; +qdict_set_default_str (child_options,BDRV_OPT_CACHE_NO_FLUSH ,"on" ); } static const BdrvChildRole child_vvfat_qcow = {
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Kevin Wolf
AppliedAm 15.03.2018 um 04:45 hat Fam Zheng geschrieben:
Quoted 6 lines
Overriding flags violates the precedence rules of
bdrv_reopen_queue_child. Just like the read-only option, no-flush should be put into the options. The same is done inbdrv_temp_snapshot_options.Reported-by Stefan Hajnoczi <[email protected]Signed-off-by Fam Zheng <[email protected]>
Thanks, applied to the block branch.
Kevin
Quoted 5 lines · Fam Zheng
Overriding flags violates the precedence rules of
bdrv_reopen_queue_child. Just like the read-only option, no-flush should be put into the options. The same is done inbdrv_temp_snapshot_options.Reported-by Stefan Hajnoczi <[email protected]
^--- please add the missing '>' when merging this patch
Quoted 4 lines
Signed-off-by Fam Zheng <[email protected]>--- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)