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

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



# 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


 


Rackspace

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