From: Neil Brown <neilb@suse.de>
To: Steven French <sfrench@us.ibm.com>
Cc: Christoph Hellwig <hch@lst.de>,
akpm@linux-foundation.org, hch@infradead.org,
linux-fsdevel@vger.kernel.org
Subject: Re: + knfsd-exportfs-add-exportfsh-header-fix.patch added to -mm tree
Date: Thu, 17 May 2007 10:05:29 +1000 [thread overview]
Message-ID: <17995.40009.645694.142225@notabene.brown> (raw)
In-Reply-To: message from Steven French on Wednesday May 16
On Wednesday May 16, sfrench@us.ibm.com wrote:
> Any ideas what are the minimum export operation(s) that cifs would need to
> add to export under nfsd? It was not clear to me after reading the
> Exporting document in Documentation directory.
You need to be able to map a dentry to a filehandle (you get about 20
bytes) and back again.
If CIFS provides some fix-length identifier for files, then you might
be able to do it. If not, cannot really do it at all. And I suspect
the later. (There are other requirements, like get_parent, but we
could probably work around those if we really needed to).
Theoretically, you could make it work with NFSv4 and volatile file
handles, but I doubt it would really work in practice. I don't think
the "volatile" concept quite stretch as far as you would need.
Probably the best way to nfs-export a CIFS filesystem is to use the
user-space nfs server. It caches recently used filenames and uses a
filehandle which is a hash of the name. It works on a best-effort
basis, and if, for example, the server restarts, you will lose
connections to open files. While it is not perfect, it can be very
useful in some situations.
NeilBrown
next prev parent reply other threads:[~2007-05-17 0:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200705152152.l4FLqJsV018874@shell0.pdx.osdl.net>
2007-05-16 6:57 ` + knfsd-exportfs-add-exportfsh-header-fix.patch added to -mm tree Christoph Hellwig
2007-05-16 12:53 ` Christoph Hellwig
2007-05-16 14:55 ` Steven French
2007-05-16 16:02 ` J. Bruce Fields
2007-05-16 17:03 ` Steven French
2007-05-16 21:33 ` J. Bruce Fields
2007-05-17 0:05 ` Neil Brown [this message]
2007-05-17 3:11 ` Steven French
2007-05-17 4:26 ` Neil Brown
2007-05-22 9:10 ` Christoph Hellwig
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=17995.40009.645694.142225@notabene.brown \
--to=neilb@suse.de \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.org \
--cc=hch@lst.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=sfrench@us.ibm.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 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).