]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - resize/test-resize
Merge branch 'maint' into next
[thirdparty/e2fsprogs.git] / resize / test-resize
1 #!/bin/sh
2
3 FS=/bigscratch/testfs
4 FEATURE="-O 64bit"
5
6 RESIZE2FS=/tmp/resize2fs.static
7 MKE2FS=mke2fs
8 DUMPE2FS=dumpe2fs
9 E2FSCK=e2fsck
10
11 /bin/rm -f $FS ; touch $FS
12 truncate -s 8T $FS
13 $MKE2FS -F -t ext4 $FEATURE $FS
14 $E2FSCK -FY $FS
15 $DUMPE2FS $FS > /tmp/d1
16
17 truncate -s 20T $FS
18 time $RESIZE2FS -d 31 -p $FS > /tmp/r1
19 $DUMPE2FS $FS > /tmp/d2
20 $E2FSCK -fy $FS
21 $DUMPE2FS $FS > /tmp/d3
22
23 truncate -s 21T $FS
24 time $RESIZE2FS -d 31 -p $FS > /tmp/r2
25 $DUMPE2FS $FS > /tmp/d4
26 $E2FSCK -fy $FS
27 $DUMPE2FS $FS > /tmp/d5