shared: new test to use up free inodes
PATCH 1/1 shared: new test to use up free inodes
Stress test fs by using up all inodes and check fs.
Also a regression test for xfsprogs commit
d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path()
--- tests/shared/006 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/shared/006.out | 2 ++ tests/shared/group | 1 + 3 files changed, 99 insertions(+) create mode 100755 tests/shared/006 create mode 100644 tests/shared/006.out
tests/shared/006 new file +96 -0
@@ -0,0 +1,96 @@ +#! /bin/bash +# FS QA Test No. shared/006 +# +# Stress test fs by using up all inodes and check fs. +# +# Also a regression test for xfsprogs commit +# d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path() +# +#----------------------------------------------------------------------- +# Copyright (c) 2014 Red Hat Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +} + +create_file() +{ + local dir=$1 + local nr_file=$2 + local prefix=$3 + local i=0 + + while [ $i -lt $nr_file ]; do + touch $dir/${prefix}_${i} + let i=$i+1 + done +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here +_supported_fs ext4 ext3 ext2 xfs +_supported_os Linux + +_require_scratch + +rm -f $seqres.full +echo "Silence is golden" + +_scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 +_scratch_mount + +i=0 +free_inode=`df -iP $SCRATCH_MNT | tail -1 | awk '{print $2}'` +loop=$((free_inode / 1000 + 1)) +mkdir -p $SCRATCH_MNT/testdir + +echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full +while [ $i -lt $loop ]; do + create_file $SCRATCH_MNT/testdir 1000 $i >>$seqres.full 2>&1 & + let i=$i+1 +done +wait + +# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdir +echo "Inode status after deleting all test files" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full +_check_scratch_fs + +status=0 +exit
tests/shared/006.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 006 +Silence is golden
tests/shared/group +1 -0
@@ -8,6 +8,7 @@ 003 auto quick prealloc 004 auto quick prealloc 005 auto prealloc +006 auto stress enospc 032 mkfs auto quick 051 acl udf auto quick 218 auto fsr quick
Signature · 6 lines
1.8.5.3 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 60 lines · Eryu Guan
Stress test fs by using up all inodes and check fs.
Also a regression test for xfsprogs commit
d586858xfs_repair: fix sibling pointer tests inverify_dir2_path()Signed-off-by Eryu Guan <[email protected]>--- tests/shared/006 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/shared/006.out | 2 ++ tests/shared/group | 1 + 3 files changed, 99 insertions(+) create mode 100755 tests/shared/006 create mode 100644 tests/shared/006.outtests/shared/006 new file +40
-0@@ -0,0 +1,96 @@ +#! /bin/bash +# FS QA Test No. shared/006 +# +# Stress test fs by using up all inodes and check fs. +# +# Also a regression test for xfsprogs commit +# d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path() +# +#----------------------------------------------------------------------- +# Copyright (c) 2014 Red Hat Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +}
tests/shared/006 line 50
Quoted 10 lines
tests/shared/006 new file +10
-0+ +create_file() +{ + local dir=$1 + local nr_file=$2 + local prefix=$3 + local i=0 + + while [ $i -lt $nr_file ]; do + touch $dir/${prefix}_${i}
echo -n > $dir/${prefix}_${i}
will create a zero length file without needing to fork/exec and so will have much lower overhead and create the files significantly faster.
Quoted 9 lines
tests/shared/006 new file +9
-0+ let i=$i+1 + done +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here
tests/shared/006 line 69
Quoted 10 lines
tests/shared/006 new file +10
-0+_supported_fs ext4 ext3 ext2 xfs +_supported_os Linux + +_require_scratch + +rm -f $seqres.full +echo "Silence is golden" + +_scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 +_scratch_mount
If this is going to be a stress test, you should add a scale factor into this.
tests/shared/006 line 72
Quoted 3 lines
tests/shared/006 new file +3
-0+ +i=0 +free_inode=`df -iP $SCRATCH_MNT | tail -1 | awk '{print $2}'`
$DF_PROG
tests/shared/006 line 73
Quoted 1 line
tests/shared/006 new file +1
-0+loop=$((free_inode / 1000 + 1))
And probably a LOAD_FACTOR into this to scale parallelism.
tests/shared/006 line 81
Quoted 8 lines
tests/shared/006 new file +8
-0+mkdir -p $SCRATCH_MNT/testdir + +echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full +while [ $i -lt $loop ]; do + create_file $SCRATCH_MNT/testdir 1000 $i >>$seqres.full 2>&1 & + let i=$i+1 +done +wait
On XFS, that will create at least 500 threads creating 1000 inodes each all in the same directory. This doesn't give you any extra parallelism at all over just creating $free_inode files in a single directory with a single thread. Indeed, it will probably be slower due to the contention on the directory mutex.
If you want to scale this in terms of parallelism to keep the creation time down, each loop needs to write into a different directory. i.e. something like:
echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full while [ $i -lt $loop ]; do
mkdir -p $SCRATCH_MNT/testdir/$i create_file $SCRATCH_MNT/testdir/$i 1000 $i >>$seqres.full 2>&1 & let i=$i+1
done
wait
And even then I'd suggest that you'd be much better off with 10,000 files to a sub-directory....
tests/shared/006 line 90
Quoted 8 lines
tests/shared/006 new file +8
-0+# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdir
That can be parallelised as well when you have multiple subdirs:
for d in $SCRATCH_MNT/testdir/*; do
rm -rf $d &
done
wait
Cheers,
Dave.
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 74 lines · Dave Chinner
Quoted 60 lines · Eryu Guan
Stress test fs by using up all inodes and check fs.
Also a regression test for xfsprogs commit
d586858xfs_repair: fix sibling pointer tests inverify_dir2_path()Signed-off-by Eryu Guan <[email protected]>--- tests/shared/006 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/shared/006.out | 2 ++ tests/shared/group | 1 + 3 files changed, 99 insertions(+) create mode 100755 tests/shared/006 create mode 100644 tests/shared/006.outtests/shared/006 new file +40
-0@@ -0,0 +1,96 @@ +#! /bin/bash +# FS QA Test No. shared/006 +# +# Stress test fs by using up all inodes and check fs. +# +# Also a regression test for xfsprogs commit +# d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path() +# +#----------------------------------------------------------------------- +# Copyright (c) 2014 Red Hat Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +}tests/shared/006 line 50
Quoted 10 lines
tests/shared/006 new file +10
-0+ +create_file() +{ + local dir=$1 + local nr_file=$2 + local prefix=$3 + local i=0 + + while [ $i -lt $nr_file ]; do + touch $dir/${prefix}_${i}echo -n > $dir/${prefix}_${i}
Quoted 3 lines
will create a zero length file without needing to fork/exec and so will have much lower overhead and create the files significantly faster.
This is better.
Quoted 15 lines
Quoted 15 lines
tests/shared/006 new file +14
-0+ let i=$i+1 + done +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here +_supported_fs ext4 ext3 ext2 xfs +_supported_os Linux + +_require_scratch +
Quoted 8 lines
tests/shared/006 line 69
Quoted 5 lines
tests/shared/006 new file +5
-0+rm -f $seqres.full +echo "Silence is golden" + +_scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 +_scratch_mountIf this is going to be a stress test, you should add a scale factor into this.
I don't have strong feeling to make it a stress test, I'd like to remove the stress group to make the test a simple regression test.
Quoted 6 lines
tests/shared/006 line 72
Quoted 4 lines
tests/shared/006 new file +3
-0+ +i=0 +free_inode=`df -iP $SCRATCH_MNT | tail -1 | awk '{print $2}'`$DF_PROG
OK.
Quoted 27 lines
tests/shared/006 line 73
Quoted 2 lines
tests/shared/006 new file +1
-0+loop=$((free_inode / 1000 + 1))And probably a
LOAD_FACTORinto this to scale parallelism.tests/shared/006 line 81
Quoted 8 lines
tests/shared/006 new file +8
-0+mkdir -p $SCRATCH_MNT/testdir + +echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full +while [ $i -lt $loop ]; do + create_file $SCRATCH_MNT/testdir 1000 $i >>$seqres.full 2>&1 & + let i=$i+1 +done +waitOn XFS, that will create at least 500 threads creating 1000 inodes each all in the same directory. This doesn't give you any extra parallelism at all over just creating $free_inode files in a single directory with a single thread. Indeed, it will probably be slower due to the contention on the directory mutex.
If you want to scale this in terms of parallelism to keep the creation time down, each loop needs to write into a different directory. i.e. something like:
echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full while [ $i -lt $loop ]; do
Quoted 8 lines
mkdir -p $SCRATCH_MNT/testdir/$i create_file $SCRATCH_MNT/testdir/$i 1000 $i >>$seqres.full 2>&1 & let i=$i+1done
waitAnd even then I'd suggest that you'd be much better off with 10,000 files to a sub-directory....
Will do.
Quoted 12 lines
tests/shared/006 line 90
Quoted 9 lines
tests/shared/006 new file +8
-0+# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdirThat can be parallelised as well when you have multiple subdirs:
Quoted 4 lines
for d in $SCRATCH_MNT/testdir/*; do
rm -rf $d &done
wait
Will do.
Thanks for the detailed review (as always)!
Eryu
Quoted 7 lines
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 2 lines · Eryu Guan
Quoted 1 line · Dave Chinner
On Wed, Mar 19, 2014 at 05:27:49PM +0800, Eryu Guan wrote:
[snip]
Quoted 12 lines
Quoted 12 lines
On XFS, that will create at least 500 threads creating 1000 inodes each all in the same directory. This doesn't give you any extra parallelism at all over just creating $free_inode files in a single directory with a single thread. Indeed, it will probably be slower due to the contention on the directory mutex.
If you want to scale this in terms of parallelism to keep the creation time down, each loop needs to write into a different directory. i.e. something like:
Quoted 7 lines
Quoted 7 lines
echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full while [ $i -lt $loop ]; do
mkdir -p $SCRATCH_MNT/testdir/$i create_file $SCRATCH_MNT/testdir/$i 1000 $i >>$seqres.full 2>&1 & let i=$i+1done
wait
It turns out that creating files in different dirs is unable to reproduce the bug that commit
d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path()
fixed. I'll keep the files in one testdir.
Thanks,
Eryu
Quoted 36 lines
Quoted 3 lines
And even then I'd suggest that you'd be much better off with 10,000 files to a sub-directory....
Will do.
Quoted 12 lines
tests/shared/006 line 90
Quoted 9 lines
tests/shared/006 new file +8
-0+# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdirThat can be parallelised as well when you have multiple subdirs:
Quoted 4 lines
for d in $SCRATCH_MNT/testdir/*; do
rm -rf $d &done
waitWill do.
Thanks for the detailed review (as always)!
Eryu
Quoted 7 lines
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Quoted 4 lines
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 4 lines · Eryu Guan
Stress test fs by using up all inodes and check fs.
Also a regression test for xfsprogs commit
d586858xfs_repair: fix sibling pointer tests inverify_dir2_path()
Thanks Eryu. I had started to write this test but ran into another bug (where xfs blows past the maximum inode space %) so got distracted.
I see Dave's already picked apart the patch so I won't comment specifically on it, but you might be aware of the possibility that xfs won't stop when we hit the default imaxpct, and may actually fill the entire fs. That's not necessarily a problem but it may take longer than you expect.
I also wonder what's necessary to actually test the sibling pointer problem; on xfs, it's probably just a sufficiently large directory, not necessarily a full fs?
-Eric
Quoted 125 lines
Signed-off-by Eryu Guan <[email protected]>--- tests/shared/006 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/shared/006.out | 2 ++ tests/shared/group | 1 + 3 files changed, 99 insertions(+) create mode 100755 tests/shared/006 create mode 100644 tests/shared/006.outtests/shared/006 new file +96
-0@@ -0,0 +1,96 @@ +#! /bin/bash +# FS QA Test No. shared/006 +# +# Stress test fs by using up all inodes and check fs. +# +# Also a regression test for xfsprogs commit +# d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path() +# +#----------------------------------------------------------------------- +# Copyright (c) 2014 Red Hat Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +} + +create_file() +{ + local dir=$1 + local nr_file=$2 + local prefix=$3 + local i=0 + + while [ $i -lt $nr_file ]; do + touch $dir/${prefix}_${i} + let i=$i+1 + done +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here +_supported_fs ext4 ext3 ext2 xfs +_supported_os Linux + +_require_scratch + +rm -f $seqres.full +echo "Silence is golden" + +_scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 +_scratch_mount + +i=0 +free_inode=`df -iP $SCRATCH_MNT | tail -1 | awk '{print $2}'` +loop=$((free_inode / 1000 + 1)) +mkdir -p $SCRATCH_MNT/testdir + +echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full +while [ $i -lt $loop ]; do + create_file $SCRATCH_MNT/testdir 1000 $i >>$seqres.full 2>&1 & + let i=$i+1 +done +wait + +# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdir +echo "Inode status after deleting all test files" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full +_check_scratch_fs + +status=0 +exittests/shared/006.out new file +2
-0@@ -0,0 +1,2 @@ +QA output created by 006 +Silence is goldentests/shared/group +0
-0
tests/shared/group line 14
Quoted 7 lines
tests/shared/group +1
-0@@ -8,6 +8,7 @@ 003 auto quick prealloc 004 auto quick prealloc 005 auto prealloc +006 auto stress enospc 032 mkfs auto quick 051 acl udf auto quick 218 auto fsr quick
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 8 lines · Eric Sandeen
Quoted 4 lines · Eryu Guan
Stress test fs by using up all inodes and check fs.
Also a regression test for xfsprogs commit
d586858xfs_repair: fix sibling pointer tests inverify_dir2_path()Thanks Eryu. I had started to write this test but ran into another bug (where xfs blows past the maximum inode space %) so got distracted.
I didn't notice this. Do I need to add extra check to detect this in my test? I want to cover this in one test case if possible.
Quoted 5 lines
I see Dave's already picked apart the patch so I won't comment specifically on it, but you might be aware of the possibility that xfs won't stop when we hit the default imaxpct, and may actually fill the entire fs. That's not necessarily a problem but it may take longer than you expect.
Yes, I noticed that testing on xfs didn't give ENOSPC error as testing on ext4 do. The number of extra files created is less than 1000, so I think that's fine.
Quoted 4 lines
I also wonder what's necessary to actually test the sibling pointer problem; on xfs, it's probably just a sufficiently large directory, not necessarily a full fs?
I've seen list corruption and then xfs force shutdown by running the same test(at the time removing all created files) on earlier RHEL7 test kernels, then the bug was fixed by xfs update. So I'm not sure it's large directory or taking all free inode trigger the bug, I think I'd better still to fulfill the fs.
Thanks,
Eryu
Quoted 128 lines
-Eric
Quoted 124 lines
Signed-off-by Eryu Guan <[email protected]>--- tests/shared/006 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/shared/006.out | 2 ++ tests/shared/group | 1 + 3 files changed, 99 insertions(+) create mode 100755 tests/shared/006 create mode 100644 tests/shared/006.outtests/shared/006 new file +96
-0@@ -0,0 +1,96 @@ +#! /bin/bash +# FS QA Test No. shared/006 +# +# Stress test fs by using up all inodes and check fs. +# +# Also a regression test for xfsprogs commit +# d586858 xfs_repair: fix sibling pointer tests in verify_dir2_path() +# +#----------------------------------------------------------------------- +# Copyright (c) 2014 Red Hat Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_cleanup() +{ + cd / + rm -f $tmp.* +} + +create_file() +{ + local dir=$1 + local nr_file=$2 + local prefix=$3 + local i=0 + + while [ $i -lt $nr_file ]; do + touch $dir/${prefix}_${i} + let i=$i+1 + done +} + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter + +# real QA test starts here +_supported_fs ext4 ext3 ext2 xfs +_supported_os Linux + +_require_scratch + +rm -f $seqres.full +echo "Silence is golden" + +_scratch_mkfs_sized $((1024 * 1024 * 1024)) >>$seqres.full 2>&1 +_scratch_mount + +i=0 +free_inode=`df -iP $SCRATCH_MNT | tail -1 | awk '{print $2}'` +loop=$((free_inode / 1000 + 1)) +mkdir -p $SCRATCH_MNT/testdir + +echo "Create $((loop * 1000)) files in $SCRATCH_MNT/testdir" >>$seqres.full +while [ $i -lt $loop ]; do + create_file $SCRATCH_MNT/testdir 1000 $i >>$seqres.full 2>&1 & + let i=$i+1 +done +wait + +# log inode status in $seqres.full for debug purpose +echo "Inode status after taking all inodes" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full + +_check_scratch_fs + +# Check again after removing all the files +rm -rf $SCRATCH_MNT/testdir +echo "Inode status after deleting all test files" >>$seqres.full +df -i $SCRATCH_MNT >>$seqres.full +_check_scratch_fs + +status=0 +exittests/shared/006.out new file +2
-0@@ -0,0 +1,2 @@ +QA output created by 006 +Silence is goldentests/shared/group +0
-0@@ -8,6 +8,7 @@
Quoted 9 lines
tests/shared/group line 14
Quoted 8 lines
tests/shared/group +1
-0003 auto quick prealloc 004 auto quick prealloc 005 auto prealloc +006 auto stress enospc 032 mkfs auto quick 051 acl udf auto quick 218 auto fsr quick
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs