From: Akira Fujita <a-fujita@rs.jp.nec.com>
To: risrajak@linux.vnet.ibm.com
Cc: ltp-list@lists.sourceforge.net, miaox@cn.fujitsu.com
Subject: [LTP] [PATCH] Fix ext4_subdir_limit fix
Date: Wed, 02 Jun 2010 17:28:33 +0900 [thread overview]
Message-ID: <4C061631.3090407@rs.jp.nec.com> (raw)
LTP: Fix ext4_subdir_limit fix
From: Akira Fujita <a-fujita@rs.jp.nec.com>
We get the following error results since the if condition
in ext4_subdir_limit_tset.sh does not work fine. The patch fixes this issue.
[root@bsd086 ltp]# ./runltp -f fs_ext4
<snip>
Ext4 subdir limit test
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name len: long name,
mkdir: No space left on device
ext4-subdir-limit 2 TFAIL : failed to create directories - 19118
<snip>
ext4-subdir-limit 0 TINFO : Num of dirs to create: 65537, Dir name len: long name,
mkdir: No space left on device
ext4-subdir-limit 4 TFAIL : failed to create directories - 19592
Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
---
ext4_subdir_limit_test.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh b/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh
index 5631fe5..f0a3b50 100755
--- a/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh
+++ b/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh
@@ -152,7 +152,8 @@ for ((i = 0; i < 3; i++))
{
for ((k = 0; k < 2; k++))
{
- if [ $i -eq $LONG_DIR -a $k -eq 1024 ]; then
+ if [ ${DIR_LEN[$k]} -eq $LONG_DIR -a \
+ ${BLOCK_SIZE[$i]} -eq 1024 ]; then
continue
fi
ext4_run_case 65537 ${DIR_LEN[$k]} ${PARENT_DIR[$j]} \
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2010-06-02 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 8:28 Akira Fujita [this message]
2010-06-02 12:58 ` [LTP] [PATCH] Fix ext4_subdir_limit fix Subrata Modak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C061631.3090407@rs.jp.nec.com \
--to=a-fujita@rs.jp.nec.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=miaox@cn.fujitsu.com \
--cc=risrajak@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox