[parted-devel] [PATCH 4/5] Fix loop test

Phillip Susi phillsusi at gmail.com
Tue Jan 3 01:12:41 UTC 2012


t8001-loop-blkpg.sh relied on loop being a loadable module and loading
it with the max_part argument.  This is no longer required.

Signed-off-by: Phillip Susi <psusi at cfl.rr.com>
---
 tests/t8001-loop-blkpg.sh |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/tests/t8001-loop-blkpg.sh b/tests/t8001-loop-blkpg.sh
index 19d2ff9..9b4d760 100755
--- a/tests/t8001-loop-blkpg.sh
+++ b/tests/t8001-loop-blkpg.sh
@@ -26,13 +26,8 @@ cleanup_fn_()
   test -n "$loopdev" && losetup -d "$loopdev"
 }
 
-# If the loop module is loaded, unload it first
-if lsmod | grep '^loop[[:space:]]'; then
-    rmmod loop || fail=1
-fi
-
-# Insert loop module with max_part > 1
-modprobe loop max_part=7 || fail=1
+# Make sure loop is loaded
+modprobe loop
 
 # Create backing file
 dd if=/dev/zero of=backing_file bs=1M count=4 >/dev/null 2>&1 || fail=1
-- 
1.7.5.4




More information about the parted-devel mailing list