patch to test vbd loopback sharing issue
Daniel,
Thanks a lot for your patch. In fact, I have another solution for this problem, that is, we can force mode "w" to "r". I have tested this patch and it works quite well in today's xm-test report. Please help me review this patch. :-)
Quoted 15 lines
-----Original Message-----
From: Daniel Stekloff [mailto:[email protected]]
Sent: 2006年3月17日 8:51
To: Ricardo C Gonzalez; Yu, Ping Y
Cc: Xen Mailing List
Subject: patch to test vbd loopback sharing issueHi Ping and Rick,
Could you both test this patch to see if the loopback sharing issues go away? Ping was right, Xend - or the
/etc/xen/scripts/blockscript - checks to make sure if a device is already in use. I'm not sure why we didn't hit this before, but we are now.
Quoted 9 lines
This patch just changes the mode for HVM disk.img mount to 'w!' to force it to not check for sharing. We need the sharing currently.
Thanks to Dan Smith for the suggested fix.
Thanks,
Dan
tools/xm-test/lib/XmTestLib/XenDomain.py +1 -1
@@ -74,7 +74,7 @@ "vcpus" : 1, "acpi" : 0, "apic" : 0, - "disk" : ["file:%s/disk.img,ioemu:%s,w" % + "disk" : ["file:%s/disk.img,ioemu:%s,r" % (getRdPath(), BLOCK_ROOT_DEV)], "kernel" : "/usr/lib/xen/boot/hvmloader", "builder" : "hvm",
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
PY> Daniel, Thanks a lot for your patch. In fact, I have another PY> solution for this problem, that is, we can force mode "w" to PY> "r". I have tested this patch and it works quite well in today's PY> xm-test report. Please help me review this patch. :-)
AFAIK, qemu-dm does not honor the read-only flag from xend. This has a side effect of making the concurrent use checks go away, but it also would indicate to someone that the disk image is read-only, which would not be true. So, since 'r' is not honored, 'w!' is more appropriate, as it describes what is actually happening.
So, IMHO, Dan's patch should go into the tree.
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Ping Y
Daniel,
Thanks a lot for your patch. In fact, I have another solution for this problem, that is, we can force mode "w" to "r". I have tested this patch and it works quite well in today's xm-test report.
Following Dan Smith's argument that "r" is misleading, given that qemu-dm does not honour the read-only flag, I have taken Dan Stekloff's patch, using "w!" to avoid the multiple writer check, instead.
Ewan.