aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-01-16 13:43:36 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-01-16 14:09:21 -0500
commit921b79bcfd40a704622e23b7cd6735e88d7e4f1b (patch)
treef136e85e8dca9aaf1c046400821829707c97b74a
parentc253c3b982466d649458c40fde0bf26427515f79 (diff)
downloade2fsprogs-921b79bcfd40a704622e23b7cd6735e88d7e4f1b.tar.gz
e2fsprogs-921b79bcfd40a704622e23b7cd6735e88d7e4f1b.tar.xz
e2fsprogs-921b79bcfd40a704622e23b7cd6735e88d7e4f1b.zip
resize2fs: check in test-resize script
This should be made into a more formal, automated test case, but for now, save this as script since it's useful for validating resize2fs's handling of very large file systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rwxr-xr-xresize/test-resize27
1 files changed, 27 insertions, 0 deletions
diff --git a/resize/test-resize b/resize/test-resize
new file mode 100755
index 00000000..3766f4fa
--- /dev/null
+++ b/resize/test-resize
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+FS=/bigscratch/testfs
+FEATURE="-O 64bit"
+
+RESIZE2FS=/tmp/resize2fs.static
+MKE2FS=mke2fs
+DUMPE2FS=dumpe2fs
+E2FSCK=e2fsck
+
+/bin/rm -f $FS ; touch $FS
+truncate -s 8T $FS
+$MKE2FS -F -t ext4 $FEATURE $FS
+$E2FSCK -FY $FS
+$DUMPE2FS $FS > /tmp/d1
+
+truncate -s 20T $FS
+time $RESIZE2FS -d 31 -p $FS > /tmp/r1
+$DUMPE2FS $FS > /tmp/d2
+$E2FSCK -fy $FS
+$DUMPE2FS $FS > /tmp/d3
+
+truncate -s 21T $FS
+time $RESIZE2FS -d 31 -p $FS > /tmp/r2
+$DUMPE2FS $FS > /tmp/d4
+$E2FSCK -fy $FS
+$DUMPE2FS $FS > /tmp/d5