From: Peter Staubach <staubach@redhat.com>
To: Ben Greear <greearb@candelatech.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Can you specify a local IP or Interface to be used on a per NFS mount basis?
Date: Fri, 20 Jan 2006 08:52:50 -0500 [thread overview]
Message-ID: <43D0EB32.5050909@redhat.com> (raw)
In-Reply-To: <43D06687.2050108@candelatech.com>
Ben Greear wrote:
> Trond Myklebust wrote:
>
>> On Wed, 2006-01-18 at 19:28 -0800, Ben Greear wrote:
>>
>>
>>>> As David said, the place to fix it is in xs_bindresvport(), but
>>>> there is
>>>> no support for passing this sort of information through the current
>>>> NFS
>>>> binary mount structure. You would have to hack that up yourself.
>>>
>>>
>>> I can think of some horrible hacks to grab info out of a text file
>>> based
>>> on the mount point or some other available info...but if I actually
>>> attempted to do it right..would you consider the patch for kernel
>>> inclusion? Is it OK to modify the binary mount structure?
>>
>>
>>
>> It is possible, yes: the binary structure carries a version number that
>> allows the kernel to distinguish the various revisions that the userland
>> mount program supports.
>>
>> That said, the concensus at the moment appears to be that we should move
>> towards a text-based mount structure for NFS (like most of the other
>> filesystems have, and like NFSroot has) so I'd be reluctant to take
>> patches that define new binary structures.
>
>
> Ok. This patch does extend the binary struct, and to do it really right,
> we should probably pass in some sort of in_addr struct instead of the
> single 'u32' for the IP address.
>
> So, please just consider this a proof of concept. That said, with a
> patched 'mount' binary (diff available if anyone cares), this does
> do exactly what I want: allows binding an nfs client to a particular
> local IP address.
>
> If/when you get the text based interface working, I will try to cook
> up an official patch worthy of inclusion if you have not already
> done so.
These changes are very IPv4 specific. Perhaps they could be constructed
in a
bit more IP version agnostic fashion? IPv6 is coming as well as other
transport
choices, not all of whose addresses will fit into 32 bits.
Thanx...
ps
next prev parent reply other threads:[~2006-01-20 13:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 23:10 Can you specify a local IP or Interface to be used on a per NFS mount basis? Ben Greear
2006-01-19 0:48 ` Trond Myklebust
2006-01-19 2:21 ` Ben Greear
2006-01-19 2:29 ` David S. Miller
2006-01-19 3:24 ` Trond Myklebust
2006-01-19 3:28 ` Ben Greear
2006-01-19 4:24 ` Trond Myklebust
2006-01-20 4:26 ` Ben Greear
2006-01-20 13:52 ` Peter Staubach [this message]
2006-01-20 17:11 ` Ben Greear
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=43D0EB32.5050909@redhat.com \
--to=staubach@redhat.com \
--cc=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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;
as well as URLs for NNTP newsgroup(s).