From: Amit K A. <ami...@in...> - 2007-12-26 07:32:57
|
Sharyathi, You may also provide a command line option for the user to be able to=20 specify the test path. And then check if this path is on a ext4 file=20 system or not. And if there is no path provided, the default behavior may=20 be to look for a ext4 partition, create a temp directory and execute your=20 test in it; as Subrata has suggested. Regards, Amit Arora Subrata Modak <su...@li...>=20 12/26/07 12:36 PM Please respond to su...@li... To sha...@li... cc ltp...@li..., Amit K Arora/India/IBM@IBMIN Subject Re: [LTP] LTP tests for fallocate On Tue, 2007-12-25 at 01:17 +0530, Sharyathi Nagesh wrote: > Hi > I am attaching a test cases written for testing fallocate() system=20 > call. Please go through the tests and let us know of your opinion. > A few points I wanted to put forth. > o It needs to be executed from a folder that has EXT4 partition. > else it will come out with error Ok, why don=B4t we/you search for the EXT4 file system before starting testing from inside your test case (in this from each of the 3 test cases) to find out the existence of EXT4 file system, if any in that system. Run the tests only if it exists, else exit with appropriate message. Moreover, try to create a temp directory in that file system, if at all it exists, and then go ahead with the test. And Also the Makefile for this? Send me a Patch which would add up all the test cases as well as the Makefile for them, after all the issues are resolved --Subrata > o =5F=5FNR=5FFALLOCATE needs to be declared under=20 > include/linux=5Fsyscall=5Fnumbers.h > Some of the architecture specific values: > x86 324 > x86=5F64 324 > ia64 1303 > s390 314 >=20 > Thanks > Yeehaw >=20 ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Ltp-l= ist mailing list=20 Ltp...@li...=20 https://lists.sourceforge.net/lists/listinfo/ltp-list |