From: Subrata M. <su...@li...> - 2010-06-02 12:58:34
|
On Wed, 2010-06-02 at 17:28 +0900, Akira Fujita wrote: > LTP: Fix ext4_subdir_limit fix > > From: Akira Fujita <a-f...@rs...> Thanks. Regards-- Subrata > > 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-f...@rs...> > --- > 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...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list |