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

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

Comments

Benoît Canet - Jan. 16, 2013, 4:24 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 e742e02..7ef9170 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -1616,6 +1616,7 @@  static int qcow2_create(const char *filename, QEMUOptionParameter *options)
                 return hash_algo;
             }
             dedup = true;
+            flags |= BLOCK_FLAG_LAZY_REFCOUNTS;
         }
         options++;
     }