WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [patch] loopback block device confliction is fixed.
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>