fcntl24,25,26 fail when run on tmpfs
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626, F_SETLEASE and F_WRLCK cannot work on tmpfs.
Index: testcases/kernel/syscalls/fcntl/fcntl24.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl24.c,v retrieving revision 1.11
kernel/syscalls/fcntl/fcntl24.c +8 -0
@@ -131,6 +131,14 @@ "Cannot do fcntl on a file located on an NFS filesystem"); } +/* +* check if the current filesystem is tmpfs +*/ +if (tst_is_cwd_tmpfs ()) { +tst_brkm (TCONF , cleanup, +"Cannot do fcntl on a file located on an TMPFS filesystem" ); + } +/* set the expected errnos... */ TEST_EXP_ENOS (exp_enos);
Index: testcases/kernel/syscalls/fcntl/fcntl25.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl25.c,v retrieving revision 1.9
kernel/syscalls/fcntl/fcntl25.c +8 -0
@@ -132,6 +132,14 @@ "Cannot do fcntl on a file located on an NFS filesystem"); } +/* +* check if the current filesystem is tmpfs +*/ +if (tst_is_cwd_tmpfs ()) { +tst_brkm (TCONF , cleanup, +"Cannot do fcntl on a file located on an TMPFS filesystem" ); + } +/* set the expected errnos... */ TEST_EXP_ENOS (exp_enos);
Index: testcases/kernel/syscalls/fcntl/fcntl26.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl26.c,v retrieving revision 1.9
kernel/syscalls/fcntl/fcntl26.c +8 -0
@@ -132,6 +132,14 @@ "Cannot do fcntl on a file located on an NFS filesystem"); } +/* +* check if the current filesystem is tmpfs +*/ +if (tst_is_cwd_tmpfs ()) { +tst_brkm (TCONF , cleanup, +"Cannot do fcntl on a file located on an TMPFS filesystem" ); + } +/* set the expected errnos... */ TEST_EXP_ENOS (exp_enos);
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi Matt,
Quoted 5 lines
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626,F_SETLEASEandF_WRLCKcannot work on tmpfs.
I tested it and works. The same issue is for RAMFS. But for this fs in necessary to createtst_is_cwd_ramfs function. Maybe worth to add together tst_is_cwd_tmpfs.c and tst_cwd_has_free.c too.
Regards,
Michal
Quoted 14 lines
------------------------------------------------------------------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Signature · 14 lines
Michal Simek, Ing. (M.Eng) PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 11 lines · Michal Simek
Hi Matt,
Quoted 5 lines
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626,F_SETLEASEandF_WRLCKcannot work on tmpfs.I tested it and works. The same issue is for RAMFS. But for this fs in necessary to create
tst_is_cwd_ramfsfunction. Maybe worth to add togethertst_is_cwd_tmpfs.candtst_cwd_has_free.ctoo.
Thanks for testing. Yes, the same issue will affect ramfs too.
I'm not quite sure what sure why you're saying tst_cwd_has_free is needed?
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 17 lines · Matt Fleming
Quoted 8 lines · Michal Simek
Hi Matt,
Quoted 6 lines
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626,F_SETLEASEandF_WRLCKcannot work on tmpfs.Quoted 6 lines
I tested it and works. The same issue is for RAMFS. But for this fs in necessary to create
tst_is_cwd_ramfsfunction. Maybe worth to add togethertst_is_cwd_tmpfs.candtst_cwd_has_free.ctoo.
Quoted 5 lines
Thanks for testing. Yes, the same issue will affect ramfs too.
I'm not quite sure what sure why you're saying
tst_cwd_has_freeis needed?
I meant that will be worth to create new one file instead of tree. I don't know call it tst_cwd_tests.c and add there content of
tst_is_cwd_tmpfs.c and tst_cwd_has_free.c + testing function for ramfs.
Cheers,
Michal
Signature · 14 lines
Michal Simek, Ing. (M.Eng) PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 5 lines · Michal Simek
Hi Matt,
Quoted 4 lines
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626,F_SETLEASEandF_WRLCKcannot work on tmpfs.
Thanks for this patch, except that it does not have a Signed-off-by:
Matt Fleming <[email protected]>, though i have added the same in CVS log message:
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl24.c?view=log,
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl25.c?view=log,
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl26.c?view=log,
Quoted 5 lines
Quoted 1 line
I tested it and works. The same issue is for RAMFS. But for this fs in necessary to create
tst_is_cwd_ramfsfunction. Maybe worth to add togethertst_is_cwd_tmpfs.candtst_cwd_has_free.ctoo.
Thanks Michal for testing this.
Regards--
Subrata
Quoted 20 lines
Regards,
MichalQuoted 14 lines
------------------------------------------------------------------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 7 lines · Subrata Modak
Quoted 5 lines · Michal Simek
Hi Matt,
Quoted 4 lines
Attached is a patch to skip testcases fcntl24, fcntl25 and fcntl26 if the host is running on tmpfs. The reason being that, as documented here
http://bugzilla.kernel.org/show_bug.cgi?id=13626,F_SETLEASEandF_WRLCKcannot work on tmpfs.
Quoted 7 lines
Thanks for this patch, except that it does not have a Signed-off-by:
Matt Fleming <[email protected]>, though i have added the same in CVS log message:
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl24.c?view=log,
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl25.c?view=log,
http://ltp.cvs.sourceforge.net/viewvc/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl26.c?view=log,
Oops, sorry I forgot the SOB line. Thanks for applying them!
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list