mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-12-14 04:16:01 +08:00
7d79b40bb3
If e2fsck encounters a filesystem that supports internal quotas, it is responsible for adjusting the quota counters if it decides to clear any orphaned inodes. Therefore, we must read the quota files, adjust the counters, and write the quota files back out when we are done. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
27 lines
586 B
Plaintext
27 lines
586 B
Plaintext
test_description="e2fsck with quota and orphan inodes"
|
|
OUT=$test_name.log
|
|
EXP=$test_dir/expect
|
|
|
|
bzip2 -dc < $test_dir/image.bz2 > $TMPFILE
|
|
|
|
rm -rf $OUT
|
|
$FSCK -f -y -N test_filesystem $TMPFILE > $OUT.new 2>&1
|
|
status=$?
|
|
echo Exit status is $status >> $OUT.new
|
|
sed -f $cmd_dir/filter.sed $OUT.new >> $OUT
|
|
rm -f $OUT.new
|
|
|
|
cmp -s $OUT $EXP
|
|
status=$?
|
|
|
|
if [ "$status" = 0 ] ; then
|
|
echo "$test_name: $test_description: ok"
|
|
touch $test_name.ok
|
|
else
|
|
echo "$test_name: $test_description: failed"
|
|
diff $DIFF_OPTS $EXP $OUT > $test_name.failed
|
|
rm -f tmp_expect
|
|
fi
|
|
|
|
unset IMAGE FSCK_OPT OUT EXP
|