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

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