V2: - check more filesystems which have subdir limit - save these fs in an array instead of swith..case
V1: http://sourceforge.net/p/ltp/mailman/message/33234484/ Function tst_fs_fill_subdirs() and related testcase try to reach the subdir limitation by making subdirectories in one directory. But the number of the limitation depends on the type of filesystems. For current kernel, subdir limit is not availiable for all filesystems (availiable for ext2, ext3, minix, sysv etc). If the testcase runs on some other filesystems, like ramfs, tmpfs, it will always fail. Although tst_fs_fill_subdirs() will give an information indicates that the limit is not reached, but form the view of point of testcase, we cannot tell whether the failure comes from the syscall. Especially, when test runs in /tmp, if /tmp is mounted as ext2/ext3, test passes; if /tmp is mounted as tmpfs, test fails. So before filling-subdirs, we check the type of the current filesystem. If it is not ext2 or ext3, give an information tells that the filesystem has not subdir limit. And the related testcase will pass because it is useless to test subdir limit. thanks, Sheng Yong Sheng Yong (3): lib/tst_fs_link_count.c: check fs type and do not fill subdir if no limit syscall/renameat01: do not test EMLINK if subdir limit not availiable lib/tests: print message if subdir limit not availiable doc/test-writing-guidelines.txt | 5 ++- lib/tests/tst_fs_fill_subdirs.c | 9 ++++-- lib/tst_fs_link_count.c | 43 +++++++++++++++++++++++-- testcases/kernel/syscalls/renameat/renameat01.c | 5 +++ 4 files changed, 57 insertions(+), 5 deletions(-) -- 1.8.3.4 ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list