aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-21 14:14:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-21 14:14:51 +0200
commit1d6e4473faf605a1b6fc386e66c2539bebe763f7 (patch)
treea6bd85984dd1dfc8f950f673cd9e5d4ce6a3b943 /util-linux
parentece01ee8cac0318b96f55085da68799b516406a4 (diff)
downloadbusybox-w32-1d6e4473faf605a1b6fc386e66c2539bebe763f7.tar.gz
busybox-w32-1d6e4473faf605a1b6fc386e66c2539bebe763f7.tar.bz2
busybox-w32-1d6e4473faf605a1b6fc386e66c2539bebe763f7.zip
mkfs_ext2_test: disable incomtatible behavior in standard mke2fs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rwxr-xr-xutil-linux/mkfs_ext2_test.sh17
1 files changed, 9 insertions, 8 deletions
diff --git a/util-linux/mkfs_ext2_test.sh b/util-linux/mkfs_ext2_test.sh
index 0aa98185a..79f8126cd 100755
--- a/util-linux/mkfs_ext2_test.sh
+++ b/util-linux/mkfs_ext2_test.sh
@@ -1,6 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2 2
3system_mke2fs='/sbin/mke2fs' 3# Disabling features we do not match exactly:
4system_mke2fs='/sbin/mke2fs -I 128 -O ^resize_inode'
4bbox_mke2fs='./busybox mke2fs' 5bbox_mke2fs='./busybox mke2fs'
5 6
6gen_image() { # params: mke2fs_invocation image_name 7gen_image() { # params: mke2fs_invocation image_name
@@ -51,10 +52,10 @@ while true; do
51done 52done
52 53
53# Transition from one block group to two 54# Transition from one block group to two
54# fails in [8378..8410] range 55# fails in [8378..8410] range unless -O ^resize_inode
55kilobytes=$((1 * 8*1024 - 50)) 56kilobytes=$((1 * 8*1024 - 50))
56while true; do 57while true; do
57 test_mke2fs #|| exit 1 58 test_mke2fs || exit 1
58 : $((kilobytes++)) 59 : $((kilobytes++))
59 test $kilobytes = $((1 * 8*1024 + 300)) && break 60 test $kilobytes = $((1 * 8*1024 + 300)) && break
60done 61done
@@ -69,10 +70,10 @@ while true; do
69done 70done
70 71
71# Transition from 3 block groups to 4 72# Transition from 3 block groups to 4
72# fails in [24825..24922] range 73# fails in [24825..24922] range unless -O ^resize_inode
73kilobytes=$((3 * 8*1024 - 50)) 74kilobytes=$((3 * 8*1024 - 50))
74while true; do 75while true; do
75 test_mke2fs #|| exit 1 76 test_mke2fs || exit 1
76 : $((kilobytes++)) 77 : $((kilobytes++))
77 test $kilobytes = $((3 * 8*1024 + 500)) && break 78 test $kilobytes = $((3 * 8*1024 + 500)) && break
78done 79done
@@ -87,10 +88,10 @@ while true; do
87done 88done
88 89
89# Transition from 5 block groups to 6 90# Transition from 5 block groups to 6
90# fails in [41230..41391] range 91# fails in [41230..41391] range unless -O ^resize_inode
91kilobytes=$((5 * 8*1024 - 50)) 92kilobytes=$((5 * 8*1024 - 50))
92while true; do 93while true; do
93 test_mke2fs #|| exit 1 94 test_mke2fs || exit 1
94 : $((kilobytes++)) 95 : $((kilobytes++))
95 test $kilobytes = $((5 * 8*1024 + 700)) && break 96 test $kilobytes = $((5 * 8*1024 + 700)) && break
96done 97done
@@ -98,6 +99,6 @@ exit
98 99
99# Random sizes 100# Random sizes
100while true; do 101while true; do
101 kilobytes=$(( (RANDOM*RANDOM) % 1000000 + 60)) 102 kilobytes=$(( (RANDOM*RANDOM) % 5000000 + 60))
102 test_mke2fs || exit 1 103 test_mke2fs || exit 1
103done 104done