X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fcommon.sh.in;h=3c1182016836558efb181f130c402d971bb2c745;hb=7afcf5b1da83549bfba70a61fae7a00eaa63c2b0;hp=0e792dbdc1d9d5872c0c4ae824355ad2e14cdb2d;hpb=2f342404c157f130129784f2592eaadf0930beab;p=zfs.git diff --git a/scripts/common.sh.in b/scripts/common.sh.in index 0e792db..3c11820 100644 --- a/scripts/common.sh.in +++ b/scripts/common.sh.in @@ -263,7 +263,7 @@ check_loop_utils() { # Find and return an unused loopback device. # unused_loop_device() { - for DEVICE in `ls -1 /dev/loop* 2>/dev/null`; do + for DEVICE in `ls -1 /dev/loop[0-9]* 2>/dev/null`; do ${LOSETUP} ${DEVICE} &>/dev/null if [ $? -ne 0 ]; then echo ${DEVICE}