[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210823154128.16615-7-jack@suse.cz>
Date: Mon, 23 Aug 2021 17:41:26 +0200
From: Jan Kara <jack@...e.cz>
To: Ted Tso <tytso@....edu>
Cc: <linux-ext4@...r.kernel.org>, Jan Kara <jack@...e.cz>
Subject: [PATCH 6/8] tests: Expand test checking quota and orphan processing interaction
Expand f_orphquot test to also check handling of quotas for non-root
user and verify that quota limits are properly preserved over orphan
replay.
Signed-off-by: Jan Kara <jack@...e.cz>
---
tests/f_orphquot/expect | 8 +++++++-
tests/f_orphquot/image.bz2 | Bin 1327 -> 2083 bytes
tests/f_orphquot/script | 2 ++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/f_orphquot/expect b/tests/f_orphquot/expect
index 90a78130b6a9..f1f0b446c5d1 100644
--- a/tests/f_orphquot/expect
+++ b/tests/f_orphquot/expect
@@ -1,4 +1,4 @@
-Clearing orphaned inode 12 (uid=0, gid=0, mode=0100644, size=3842048)
+Clearing orphaned inode 12 (uid=1000, gid=100, mode=0100644, size=3145728)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
@@ -8,3 +8,9 @@ Pass 5: Checking group summary information
test_filesystem: ***** FILE SYSTEM WAS MODIFIED *****
test_filesystem: 11/512 files (9.1% non-contiguous), 1070/2048 blocks
Exit status is 0
+ user id blocks quota limit inodes quota limit
+ 0 20480 0 0 2 0 0
+ 1000 0 5000 6000 0 50 60
+ group id blocks quota limit inodes quota limit
+ 0 20480 0 0 2 0 0
+ 100 0 6000 7000 0 60 70
diff --git a/tests/f_orphquot/image.bz2 b/tests/f_orphquot/image.bz2
index 44c831852b0740019705c1ffbafa3d37cc561da8..7ac17a0ffc88519616eff6cd18822897eee93cd4 100644
GIT binary patch
literal 2083
zcmc(V`#;l-0>{5LHq&MsmNoZbHsl$WOR;81$z`NMEjFr2oJzt{W|>RmRy5aVa*K7L
zhn=NPE|F4WR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
l006WK!?Gmje3DTDrUU@rg;??e)@;xGUC9*TLO_OHKkO*@K@b1{
diff --git a/tests/f_orphquot/script b/tests/f_orphquot/script
index acdf5670c500..e17bff0c1667 100644
--- a/tests/f_orphquot/script
+++ b/tests/f_orphquot/script
@@ -8,6 +8,8 @@ rm -rf $OUT
$FSCK -f -y -N test_filesystem $TMPFILE > $OUT.new 2>&1
status=$?
echo Exit status is $status >> $OUT.new
+$DEBUGFS -R 'lq user' $TMPFILE >> $OUT.new 2>&1
+$DEBUGFS -R 'lq group' $TMPFILE >> $OUT.new 2>&1
sed -f $cmd_dir/filter.sed $OUT.new >> $OUT
rm -f $OUT.new
--
2.26.2
Powered by blists - more mailing lists