Skip to contentSkip to conversation

master - tests: load reiserfs

PATCH Zdenek Kabelac 1 participant 1 message Oct 30, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3efd1f9c6e1e63c70d12cf3bc2f8eadcba47d7e5
Commit:        3efd1f9c6e1e63c70d12cf3bc2f8eadcba47d7e5
Parent:        83d5db056ba646ae69135b5f0114d1cc19b26044
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Oct 30 13:28:08 2017 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Oct 30 14:39:16 2017 +0100

tests: load reiserfs

Preload reiserfs module for the case, fs is present/compiled for a kernel but it's not present in memory.

Size reducition needs --yes confirmation to preceed for reiserfs.

---
 test/shell/fsadm-crypt.sh |    5 +++--
 test/shell/fsadm.sh       |    1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
test/shell/fsadm-crypt.sh +3 -2
index 5104feb..634fef3 100644
@@ -55,6 +55,7 @@ grep xfs /proc/filesystems || check_xfs=${check_xfs:-no_xfs}
 
 which mkfs.reiserfs || check_reiserfs=${check_reiserfs:-mkfs.reiserfs}
 which reiserfsck || check_reiserfs=${check_reiserfs:-reiserfsck}
+modprobe reiserfs || true
 grep reiserfs /proc/filesystems || check_reiserfs=${check_reiserfs:-no_reiserfs}
 
 vg_lv=$vg/$lv1
@@ -295,8 +296,8 @@ test_reiserfs_resize() {
 test_reiserfs_small_shrink() {
 	mkfs.reiserfs -s 513 -f "$3"
 
-	lvresize -L-1 -r $1
-	lvresize -L-1 -r $1
+	lvresize -y -L-1 -r $1
+	lvresize -y -L-1 -r $1
 
 	fscheck_reiserfs "$3"
 }
test/shell/fsadm.sh +1 -0
index 35c3443..62eb7d3 100644
@@ -36,6 +36,7 @@ grep xfs /proc/filesystems || check_xfs=${check_xfs:-no_xfs}
 
 which mkfs.reiserfs || check_reiserfs=${check_reiserfs:-mkfs.reiserfs}
 which reiserfsck || check_reiserfs=${check_reiserfs:-reiserfsck}
+modprobe reiserfs || true
 grep reiserfs /proc/filesystems || check_reiserfs=${check_reiserfs:-no_reiserfs}
 
 vg_lv=$vg/$lv1