From: Matt Fleming <matt@console-pimps.org>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] fcntl24,25,26 fail when run on tmpfs
Date: Thu, 30 Jul 2009 08:58:02 +0100 [thread overview]
Message-ID: <20090730075802.GE3058@console-pimps.org> (raw)
[-- 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
next reply other threads:[~2009-07-30 8:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-30 7:58 Matt Fleming [this message]
2009-07-30 10:59 ` [LTP] fcntl24,25,26 fail when run on tmpfs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090730075802.GE3058@console-pimps.org \
--to=matt@console-pimps.org \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox