hi,hitoshi,
I have tested this patch using branch
https://github.com/sheepdog/qemu/tree/locking
with follow methods and results:
1、test qemu-img
root@hty-compute1:~# ./qemu-locking/qemu-img create -f raw sheepdog:test 1G
Formatting 'sheepdog:test', fmt=raw size=1073741824
root@hty-compute1:~#
oh, yeah, of course :-)
Thanks,
Xiaolong Xu
On Thu, Jan 22, 2015 at 10:52 PM, Hitoshi Mitake mitake.hito...@gmail.com
wrote:
On Thu, Jan 22, 2015 at 11:24 PM, 徐小龙 nxtxiaol...@gmail.com wrote:
Xiaolong Xu nxtxiaol...@gmail.com
Thanks,
xiaolong xu
Thanks for your tag. From next time
current gateway.c has duplicate `if` statement,
this patch remove it
Signed-off-by: Xiaolong Xu nxtxiaol...@gmail.com
---
sheep/gateway.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sheep/gateway.c b/sheep/gateway.c
index 7f7d1d1..91bcad2 100644
--- a/sheep/gateway.c
hi,Hitoshi
we've tested the patch. Our test method is:
We attached a 20G sheepdog VDI to a VM holded by openstack. And we created
a 2G file which we have it's md5 in hand in the VDI.
We killed the non-gateway nodes in the middle of the process, then
restarted the cluster. The process resumed
Epoch won't increase if there are only gateway nodes in the cluster.
In this way, when the cluster restarts, it will always recovery from a
latest epoch version which has at least one non-gateway node in the cluster.
This patch fixes bug data wipe bug in the recovery described here: