[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch] loopback block device confliction is fixed.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
  • Date: Wed, 30 Nov 2005 12:04:36 +0900
  • Delivery-date: Wed, 30 Nov 2005 03:04:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcX1Wsvq9RBU4zk9T5aH4AzqlcuG+g==

Hi.

I found cause of problem that loopback devices is not connect when more
than two loopback block devices is used.
The cause is setup these loopback block devices concurrently, so that
these devices indicate same loopback devices.
(show log file ... message.log)

I attach tentative patch for this problem. (block.patch)
This patch is that searching is stopped if free loop back device is
found.
Process is very fast, so that in my environments, confliction is not
observed.

I think that good resolution is provide lock mechanism.

Thank you.


diff -r 243265ade404 tools/examples/block
--- a/tools/examples/block      Mon Nov 28 17:22:02 2005
+++ b/tools/examples/block      Wed Nov 30 12:35:35 2005
@@ -238,6 +238,7 @@
             if [ "$loopdev" == '' ]
             then
               loopdev="$dev"
+             break
             fi
           fi
         done

Attachment: message.log
Description: Binary data

Attachment: block.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.