public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] fcntl24,25,26 fail when run on tmpfs
@ 2009-07-30  7:58 Matt Fleming
  2009-07-30 10:59 ` Michal Simek
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Fleming @ 2009-07-30  7:58 UTC (permalink / raw)
  To: ltp-list

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

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.


[-- Attachment #2: ltp-F_SETLEASE-doesnt-work-on-tmpfs.patch --]
[-- Type: text/x-patch, Size: 2181 bytes --]

Index: testcases/kernel/syscalls/fcntl/fcntl24.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fcntl/fcntl24.c,v
retrieving revision 1.11
diff -u -r1.11 fcntl24.c
--- testcases/kernel/syscalls/fcntl/fcntl24.c	23 Mar 2009 13:35:41 -0000	1.11
+++ testcases/kernel/syscalls/fcntl/fcntl24.c	29 Jul 2009 14:49:08 -0000
@@ -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
diff -u -r1.9 fcntl25.c
--- testcases/kernel/syscalls/fcntl/fcntl25.c	23 Mar 2009 13:35:41 -0000	1.9
+++ testcases/kernel/syscalls/fcntl/fcntl25.c	29 Jul 2009 14:49:08 -0000
@@ -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
diff -u -r1.9 fcntl26.c
--- testcases/kernel/syscalls/fcntl/fcntl26.c	23 Mar 2009 13:35:41 -0000	1.9
+++ testcases/kernel/syscalls/fcntl/fcntl26.c	29 Jul 2009 14:49:08 -0000
@@ -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);
 

[-- Attachment #3: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-03 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30  7:58 [LTP] fcntl24,25,26 fail when run on tmpfs Matt Fleming
2009-07-30 10:59 ` Michal Simek
2009-07-30 15:44   ` Matt Fleming
2009-07-30 17:04     ` Michal Simek
2009-08-03 11:19   ` Subrata Modak
2009-08-03 11:26     ` Matt Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox