From: Xiong Zhou <xzhou@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH v3 1/3] fcntl16: Skip fcntl16 tests on NFS
Date: Thu, 21 Aug 2014 00:12:35 -0400 (EDT) [thread overview]
Message-ID: <389062153.22364213.1408594355921.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <951473587.22362927.1408594230035.JavaMail.zimbra@redhat.com>
According to nfs(5), NLM supports advisory file locks only. So skip
fcntl16 test if NFS.
Signed-off-by: Xiong Zhou <xzhou@redhat.com>
---
testcases/kernel/syscalls/fcntl/fcntl16.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/testcases/kernel/syscalls/fcntl/fcntl16.c b/testcases/kernel/syscalls/fcntl/fcntl16.c
index 44b6a80..7dba6ea 100644
--- a/testcases/kernel/syscalls/fcntl/fcntl16.c
+++ b/testcases/kernel/syscalls/fcntl/fcntl16.c
@@ -51,6 +51,8 @@
#include <sys/types.h>
#include <sys/wait.h>
+#include "tst_fs_type.h"
+
#define SKIPVAL 0x0f00
//#define SKIP SKIPVAL, 0, 0L, 0L, IGNORED
#define SKIP 0,0,0L,0L,0
@@ -412,6 +414,12 @@ void setup(void)
tst_tmpdir();
+ /* On NFS or not */
+ if (tst_fs_type(cleanup, ".") == TST_NFS_MAGIC) {
+ tst_brkm(TCONF, cleanup, "Cannot test madatory locking "
+ "on a file located on an NFS filesystem");
+ }
+
/* set up temp filename */
sprintf(tmpname, "fcntl4.%d", parent);
--
1.8.3.1
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next parent reply other threads:[~2014-08-21 4:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <951473587.22362927.1408594230035.JavaMail.zimbra@redhat.com>
2014-08-21 4:12 ` Xiong Zhou [this message]
2014-08-21 14:14 ` [LTP] [PATCH v3 1/3] fcntl16: Skip fcntl16 tests on NFS Stanislav Kholmanskikh
2014-08-22 3:20 ` Xiong Zhou
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=389062153.22364213.1408594355921.JavaMail.zimbra@redhat.com \
--to=xzhou@redhat.com \
--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