public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP]  [PATCH] Fix ext4_subdir_limit fix
@ 2010-06-02  8:28 Akira Fujita
  2010-06-02 12:58 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: Akira Fujita @ 2010-06-02  8:28 UTC (permalink / raw)
  To: risrajak; +Cc: ltp-list, miaox

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-02 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02  8:28 [LTP] [PATCH] Fix ext4_subdir_limit fix Akira Fujita
2010-06-02 12:58 ` Subrata Modak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox