Fix ext4_subdir_limit fix
PATCH 1/1 Fix ext4_subdir_limit fix
LTP: Fix ext4_subdir_limit fix
From: Akira Fujita <[email protected]>
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
--- ext4_subdir_limit_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +2 -1
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 3 lines · Akira Fujita
LTP: Fix
ext4_subdir_limitfixFrom: Akira Fujita <[email protected]>
Thanks.
Regards--
Subrata
Quoted 41 lines
We get the following error results since the if condition
inext4_subdir_limit_tset.shdoes 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 - 19592Signed-off-by Akira Fujita <[email protected]>--- ext4_subdir_limit_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh +2
-2@@ -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]} \ ------------------------------------------------------------------------------
Quoted 4 lines
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list