Patchwork [RFC,V4,26/30] qcow2: Add lazy refcounts to deduplication to prevent qcow2_cache_set_dependency loops

login
register
mail settings
Submitter Benoît Canet
Date Jan. 2, 2013, 4:16 p.m.
Message ID <1357143393-29832-27-git-send-email-benoit@irqsave.net>
Download mbox | patch
Permalink /patch/209094/
State New
Headers show

Comments

Benoît Canet - Jan. 2, 2013, 4:16 p.m.
Signed-off-by: Benoit Canet <benoit@irqsave.net>
---
 block/qcow2.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/block/qcow2.c b/block/qcow2.c
index 0154d50..f66e67d 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1606,6 +1606,7 @@  static int qcow2_create(const char *filename, QEMUOptionParameter *options)
                 return hash_algo;
             }
             dedup = true;
+            flags |= BLOCK_FLAG_LAZY_REFCOUNTS;
         }
         options++;
     }