[Devel] [PATCH RH9] dm-qcow2: Temporary disable dirty bit check

Kirill Tkhai ktkhai at virtuozzo.com
Fri Nov 19 18:05:57 MSK 2021


Till #PSBM-136244 is fixed.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-qcow2-target.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/md/dm-qcow2-target.c b/drivers/md/dm-qcow2-target.c
index b6915edd6a3c..97845929b6b5 100644
--- a/drivers/md/dm-qcow2-target.c
+++ b/drivers/md/dm-qcow2-target.c
@@ -504,9 +504,9 @@ static int qcow2_check_convert_hdr(struct dm_target *ti,
 
 	is_ro = !(dm_table_get_mode(ti->table) & FMODE_WRITE);
 
-	if (!is_ro && kernel_sets_dirty_bit !=
-	    !(hdr->incompatible_features & INCOMPATIBLE_FEATURES_DIRTY_BIT))
-		return kernel_sets_dirty_bit ? -EUCLEAN : -ENOLCK;
+//	if (!is_ro && kernel_sets_dirty_bit !=
+//	    !(hdr->incompatible_features & INCOMPATIBLE_FEATURES_DIRTY_BIT))
+//		return kernel_sets_dirty_bit ? -EUCLEAN : -ENOLCK;
 	if (hdr->incompatible_features &
 	    ~(INCOMPATIBLE_FEATURES_EXTL2_BIT|INCOMPATIBLE_FEATURES_DIRTY_BIT))
 		return -EOPNOTSUPP;




More information about the Devel mailing list