debuggers.hg

changeset 20850:c3d3e3c8e5f4

Linux: Use losetup -f where available.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 14 10:12:58 2010 +0000 (2010-01-14)
parents 50bd4235f486
children e406e3451835
files tools/hotplug/Linux/block
line diff
     1.1 --- a/tools/hotplug/Linux/block	Thu Jan 14 10:03:44 2010 +0000
     1.2 +++ b/tools/hotplug/Linux/block	Thu Jan 14 10:12:58 2010 +0000
     1.3 @@ -290,7 +290,7 @@ mount it read-write in a guest domain."
     1.4            done
     1.5          fi
     1.6  
     1.7 -        loopdev=$(find_free_loopback_dev)
     1.8 +        loopdev=$(losetup -f 2>/dev/null || find_free_loopback_dev)
     1.9          if [ "$loopdev" = '' ]
    1.10          then
    1.11            release_lock "block"