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-changelog

[Xen-changelog] [xen-unstable] Linux: Use losetup -f where available.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Linux: Use losetup -f where available.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Jan 2010 02:20:22 -0800
Delivery-date: Thu, 14 Jan 2010 02:21:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263463978 0
# Node ID c3d3e3c8e5f493e7177833adc20730879e04e8cd
# Parent  50bd4235f4864683a1ab691999bb399db96b5b3d
Linux: Use losetup -f where available.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/hotplug/Linux/block |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 50bd4235f486 -r c3d3e3c8e5f4 tools/hotplug/Linux/block
--- a/tools/hotplug/Linux/block Thu Jan 14 10:03:44 2010 +0000
+++ b/tools/hotplug/Linux/block Thu Jan 14 10:12:58 2010 +0000
@@ -290,7 +290,7 @@ mount it read-write in a guest domain."
           done
         fi
 
-        loopdev=$(find_free_loopback_dev)
+        loopdev=$(losetup -f 2>/dev/null || find_free_loopback_dev)
         if [ "$loopdev" = '' ]
         then
           release_lock "block"

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Linux: Use losetup -f where available., Xen patchbot-unstable <=