[pve-devel] [PATCH] rbd : free_image : retry if rbd has watchers

Alexandre DERUMIER aderumier at odiso.com
Tue Dec 16 15:27:39 CET 2014


also this one:
http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg02538.html
"block/mirror: Improve progress report"

"Instead of taking the total length of the block device as the block
job's length, use the number of dirty sectors. The progress is now the
number of sectors mirrored to the target block device. Note that this
may result in the job's length increasing during operation, which is
however in fact desirable."


I think we need to test qemu 2.2 block mirror,
because we are checking : 
if ($stat->{len} == $stat->{offset}) {



and they are some changes:
+        /* s->common.offset contains the number of bytes already processed so
+         * far, cnt is the number of dirty sectors remaining and
+         * s->sectors_in_flight is the number of sectors currently being
+         * processed; together those are the current total operation length */
+        s->common.len = s->common.offset +
+                        (cnt + s->sectors_in_flight) * BDRV_SECTOR_SIZE;




----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "Andrew Thrift" <andrew at networklabs.co.nz>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 12 Décembre 2014 16:09:06
Objet: Re: [pve-devel] [PATCH] rbd : free_image : retry if rbd has watchers

Maybe this could be related : 

http://lists.nongnu.org/archive/html/qemu-devel/2014-12/msg01543.html 



----- Mail original ----- 
De: "aderumier" <aderumier at odiso.com> 
À: "Andrew Thrift" <andrew at networklabs.co.nz> 
Cc: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Vendredi 12 Décembre 2014 13:18:33 
Objet: Re: [pve-devel] [PATCH] rbd : free_image : retry if rbd has watchers 







Alexandre Derumier 
Ingénieur système et stockage 


Fixe : 03 20 68 90 88 
Fax : 03 20 68 90 81 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 


MonSiteEstLent.com - Blog dédié à la webperformance et la gestion de pics de trafic 



More information about the pve-devel mailing list