diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /resize/test-resize | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream.tar.xz e2fsprogs-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'resize/test-resize')
-rwxr-xr-x | resize/test-resize | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/resize/test-resize b/resize/test-resize new file mode 100755 index 0000000..3766f4f --- /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 |