From bc8c87d2f39d6b67118fec2dba729578c169d088 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 21 Jul 2009 17:05:13 -0700 Subject: [PATCH] Missed one instance of losetup -f to unused_loop_device change --- scripts/zpool-config/lo-raid10.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zpool-config/lo-raid10.sh b/scripts/zpool-config/lo-raid10.sh index ce528004c7..64602aec38 100644 --- a/scripts/zpool-config/lo-raid10.sh +++ b/scripts/zpool-config/lo-raid10.sh @@ -24,7 +24,7 @@ zpool_create() { done for FILE in ${FILES_M2}; do - DEVICE=`/sbin/losetup -f` + DEVICE=`unused_loop_device` msg "Creating ${FILE} using loopback device ${DEVICE}" rm -f ${FILE} || exit 1 dd if=/dev/zero of=${FILE} bs=1024k count=256 &>/dev/null ||