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

Submitted by Benoît Canet on Jan. 2, 2013, 4:16 p.m.

Details

Message ID 1357143393-29832-27-git-send-email-benoit@irqsave.net
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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++;
     }