xfs/529: Execute chown on an existing directory entry

chown command is being executed on $testfile which is actually
deleted just before the execution of quota inode extent count
overflow test. Hence the test was not getting exercised at all.

This commit fixes the bug by using $fillerdir as the target of chown
command.

Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Chandan Babu R
2021-04-02 08:19:39 +05:30
committed by Eryu Guan
parent 70b22758a8
commit f3172bbedc
+1 -1
View File
@@ -150,7 +150,7 @@ nr_quotas=$((nr_quotas_per_block * nr_blks))
echo "Extend uquota file"
for i in $(seq 0 $nr_quotas_per_block $nr_quotas); do
chown $i $testfile >> $seqres.full 2>&1
chown $i $fillerdir >> $seqres.full 2>&1
[[ $? != 0 ]] && break
done