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

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