Blame SOURCES/0021-tests-Remove-rmmod-loop-from-t8001-1040504.patch

fc4a62
From 7ed256294ba287c807eca7bcc915a42f0030e5f9 Mon Sep 17 00:00:00 2001
fc4a62
From: "Brian C. Lane" <bcl@redhat.com>
fc4a62
Date: Wed, 22 Jan 2014 11:57:56 -0800
fc4a62
Subject: [PATCH] tests: Remove rmmod loop from t8001 (#1040504)
fc4a62
fc4a62
There is no reason to remove and reload the loop module, which may be in
fc4a62
use by other things on the system the test is running on.
fc4a62
fc4a62
 * tests/t8001-loop-blkpg.sh: Drop loop remove/load code.
fc4a62
---
fc4a62
 tests/t8001-loop-blkpg.sh | 8 --------
fc4a62
 1 file changed, 8 deletions(-)
fc4a62
fc4a62
diff --git a/tests/t8001-loop-blkpg.sh b/tests/t8001-loop-blkpg.sh
fc4a62
index deef18b..abffd4e 100755
fc4a62
--- a/tests/t8001-loop-blkpg.sh
fc4a62
+++ b/tests/t8001-loop-blkpg.sh
fc4a62
@@ -27,14 +27,6 @@ cleanup_fn_()
fc4a62
     && { udevadm settle --timeout=3; losetup -d "$loopdev"; }
fc4a62
 }
fc4a62
 
fc4a62
-# If the loop module is loaded, unload it first
fc4a62
-if lsmod | grep '^loop[[:space:]]'; then
fc4a62
-    rmmod loop || fail=1
fc4a62
-fi
fc4a62
-
fc4a62
-# Insert loop module with max_part > 1
fc4a62
-modprobe loop max_part=7 || fail=1
fc4a62
-
fc4a62
 # Create backing file
fc4a62
 dd if=/dev/zero of=backing_file bs=1M count=4 >/dev/null 2>&1 || fail=1
fc4a62
 
fc4a62
-- 
fc4a62
1.8.4.2
fc4a62