git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid ELOOP on auto-mounted snapshots
[zfs.git]
/
scripts
/
common.sh.in
diff --git
a/scripts/common.sh.in
b/scripts/common.sh.in
index
0e792db
..
3c11820
100644
(file)
--- 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}