File: test-resize

package info (click to toggle)
e2fsprogs 1.47.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,040 kB
  • sloc: ansic: 132,791; sh: 7,273; makefile: 5,315; awk: 524; perl: 376; cpp: 207; sed: 186; python: 23
file content (27 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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