From: Jon Mason <jon@opengridcomputing.com>
To: nfs@lists.sourceforge.net
Cc: swise@opengridcomputing.com, Jeffrey.C.Becker@nasa.gov
Subject: [NFS] mount.nfs kernel version check override
Date: Mon, 2 Mar 2009 17:22:16 -0600 [thread overview]
Message-ID: <20090302232216.GF3867@opengridcomputing.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 655 bytes --]
I am working on backporting NFS-RDMA to older versions of Linux for the
Open Fabrics Linux kernel stack (OFED). I have backported NFS-RDMA to
RHEL5.2 (which has a kernel based on 2.6.18), and others are working on
backporting to other older kernels. The issue that I have and they will
discover is that there is a check in the mount command for kernels
greater than 2.6.22. If it is older than this version, it will not pass
args to the kernel.
I have come up with a patch to add an additional flag to the mount
command to allow this kernel version check to be over-ruled. Please
consider adding it to the next release of the nfs-utils.
Thanks,
Jon
[-- Attachment #2: nfs-utils-mount.patch --]
[-- Type: text/x-diff, Size: 1025 bytes --]
--- utils/mount/mount.c.orig 2008-10-17 09:20:09.000000000 -0500
+++ utils/mount/mount.c 2009-03-02 16:41:44.000000000 -0600
@@ -331,6 +331,7 @@ void mount_usage(void)
printf(_("\t-f\t\tFake mount, do not actually mount\n"));
printf(_("\t-n\t\tDo not update /etc/mtab\n"));
printf(_("\t-s\t\tTolerate sloppy mount options rather than fail\n"));
+ printf(_("\t-i\t\tIgnore kernel version limitations\n"));
printf(_("\t-h\t\tPrint this help\n"));
printf(_("\tnfsoptions\tRefer to mount.nfs(8) or nfs(5)\n\n"));
}
@@ -475,7 +476,7 @@ int main(int argc, char *argv[])
mount_point = argv[2];
argv[2] = argv[0]; /* so that getopt error messages are correct */
- while ((c = getopt_long(argc - 2, argv + 2, "rvVwfno:hs",
+ while ((c = getopt_long(argc - 2, argv + 2, "rvVwfno:hsi",
longopts, NULL)) != -1) {
switch (c) {
case 'r':
@@ -505,6 +506,9 @@ int main(int argc, char *argv[])
case 's':
++sloppy;
break;
+ case 'i':
+ string++;
+ break;
case 'h':
default:
mount_usage();
[-- Attachment #3: Type: text/plain, Size: 415 bytes --]
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
[-- Attachment #4: Type: text/plain, Size: 362 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
http://vger.kernel.org/vger-lists.html#linux-nfs
next reply other threads:[~2009-03-02 23:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 23:22 Jon Mason [this message]
2009-03-03 0:02 ` [NFS] mount.nfs kernel version check override Chuck Lever
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=20090302232216.GF3867@opengridcomputing.com \
--to=jon@opengridcomputing.com \
--cc=Jeffrey.C.Becker@nasa.gov \
--cc=nfs@lists.sourceforge.net \
--cc=swise@opengridcomputing.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.