On Thursday 22 March 2007, bigvortex wrote: > I was looking for some information on this test. It > looks like it change at some point to open a file > with: > if ((fd = open(fname,O_RDWR|O_CREAT,0777)) == -1) > from: > if ((fd = open(fname,O_RDONLY|O_CREAT,0777)) == -1) > > The test fails for me with the following error: > fcntl(tfile_11472, F_SETLEASE, F_RDLCK) failed with > errno 11 : Resource temporarily unavailable > > This makes sense because in locks.c in __setlease > there is the following: > > error = -EAGAIN; > > if ((arg == F_RDLCK) && > (atomic_read(&inode->i_writecount) > 0)) > goto out;
the test has logic to see what kernel version it is running under and then tests that explicit behavior ... test works just for me with linux-2.6.22 -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- 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/
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
