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