From 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:49:25 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/f_bigalloc_orphan_list/expect.1 | 10 ++++++++++ tests/f_bigalloc_orphan_list/expect.2 | 7 +++++++ tests/f_bigalloc_orphan_list/name | 1 + tests/f_bigalloc_orphan_list/script | 28 ++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 tests/f_bigalloc_orphan_list/expect.1 create mode 100644 tests/f_bigalloc_orphan_list/expect.2 create mode 100644 tests/f_bigalloc_orphan_list/name create mode 100644 tests/f_bigalloc_orphan_list/script (limited to 'tests/f_bigalloc_orphan_list') diff --git a/tests/f_bigalloc_orphan_list/expect.1 b/tests/f_bigalloc_orphan_list/expect.1 new file mode 100644 index 0000000..9b83a2f --- /dev/null +++ b/tests/f_bigalloc_orphan_list/expect.1 @@ -0,0 +1,10 @@ +Clearing orphaned inode 12 (uid=0, gid=0, mode=0100644, size=28672) +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 11/64 files (0.0% non-contiguous), 112/1024 blocks +Exit status is 0 diff --git a/tests/f_bigalloc_orphan_list/expect.2 b/tests/f_bigalloc_orphan_list/expect.2 new file mode 100644 index 0000000..16d88fa --- /dev/null +++ b/tests/f_bigalloc_orphan_list/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 11/64 files (0.0% non-contiguous), 112/1024 blocks +Exit status is 0 diff --git a/tests/f_bigalloc_orphan_list/name b/tests/f_bigalloc_orphan_list/name new file mode 100644 index 0000000..5d9566f --- /dev/null +++ b/tests/f_bigalloc_orphan_list/name @@ -0,0 +1 @@ +orphaned list handling with bigalloc file systems diff --git a/tests/f_bigalloc_orphan_list/script b/tests/f_bigalloc_orphan_list/script new file mode 100644 index 0000000..8a062dc --- /dev/null +++ b/tests/f_bigalloc_orphan_list/script @@ -0,0 +1,28 @@ +if ! test -x $DEBUGFS_EXE; then + echo "$test_name: $test_description: skipped (no debugfs)" + return 0 +fi + +SKIP_GUNZIP="true" +TEST_DATA="$test_name.tmp" + +dd if=$TEST_BITS of=$TEST_DATA bs=28k count=1 > /dev/null 2>&1 + +touch $TMPFILE +$MKE2FS -Fq -t ext4 -o Linux -O bigalloc $TMPFILE 1M > /dev/null 2>&1 +$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1 +write $TEST_DATA testfile +set_inode_field testfile links_count 0 +set_inode_field testfile mode 0100644 +set_inode_field testfile bmap[0] 0 +set_inode_field testfile bmap[2] 0 +set_super_value last_orphan 12 +unlink testfile +quit +EOF + +. $cmd_dir/run_e2fsck + +rm -f $TEST_DATA + +unset E2FSCK_TIME TEST_DATA -- cgit v1.2.3