From: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] cifs: mark CONFIG_CIFS_NFSD_EXPORT as BROKEN
Date: Mon, 23 May 2011 07:12:08 -0400 [thread overview]
Message-ID: <20110523071208.5dc935f8@corrin.poochiereds.net> (raw)
In-Reply-To: <BANLkTim_K__5bqJG5snk+Bb+CW5dB70aQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Sun, 22 May 2011 20:12:04 -0500
Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Sun, May 22, 2011 at 7:17 AM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> > On Sun, 22 May 2011 07:59:38 -0400
> > Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> wrote:
> >
> >> On Sun, May 22, 2011 at 07:55:24AM -0400, Jeff Layton wrote:
> >> > This will never work properly with CIFS, as the protocol has no ability
> >> > whatsoever for looking up files by filehandle. It *might* be possible to
> >> > eventually do this with SMB2, but that remains to be seen.
> >> >
> >> > For now, it just plain doesn't work. Mark it BROKEN to discourage
> >> > distros from enabling it.
> >>
> >> It's actually dead code at this point - fs/nfsd/vfs.c:check_export()
> >> refuses to export a filesystem that does not have a fh_to_dentry
> >> operation, which cifs doesn't provide.
> >>
> >> IMHO it's best to just remove the option and all surrounding code.
> >>
> >
> > I agree and proposed a patch to do that a month or two ago. Steve
> > NAK'ed it for reasons that I don't quite understand.
>
> We were waiting on clarification on NTCreateX open by inode number flag.
>
It's clarified -- it doesn't do anything for directories so it doesn't
help.
> We have had multiple requests to be able to do limited
> export of cifs data via nfs (for example for backup to/from
> OS with only one of the protocols supported). NFS clients
> don't make this easy - because some don't handle ESTALE
> by revalidating their dentries.
>
> For nfs v3 clients that can't handle ESTALE, we are probably
> stuck with having to wait for Samba to implement the flag.
>
Flag?
> I did want to see JRA's opinion and also query if other
> NFS clients (other than Linux) can handle ESTALE
> (by e.g. revalidating the dentry and repeating the operation).
>
The client can't always revalidate the dentry. For instance, suppose
you open a file or directory and then it gets renamed or removed on the
server. The client may have no idea what the new path actually *is* in
order to revalidate it.
The fact that CIFS has no lookup by filehandle makes this whole idea
dead in the water. SMB2 might be able to do something, but I'm not yet
convinced of that.
Either way, to do this will require more than the stubs in place now.
I think this code either needs to be removed until you come up with a
design that overcomes these problems, or marked broken (like this patch
does).
--
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
next prev parent reply other threads:[~2011-05-23 11:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-22 11:55 [PATCH] cifs: mark CONFIG_CIFS_NFSD_EXPORT as BROKEN Jeff Layton
[not found] ` <1306065324-24604-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-05-22 11:59 ` Christoph Hellwig
[not found] ` <20110522115938.GA27941-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2011-05-22 12:17 ` Jeff Layton
[not found] ` <20110522081707.72cce108-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-05-23 1:12 ` Steve French
[not found] ` <BANLkTim_K__5bqJG5snk+Bb+CW5dB70aQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 11:12 ` Jeff Layton [this message]
[not found] ` <20110523071208.5dc935f8-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2011-05-23 13:42 ` Steve French
[not found] ` <BANLkTikRqxGo3mm7h3w3-JL+Si6ZJYGPZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 13:50 ` Jeff Layton
[not found] ` <20110523095027.2746e7c0-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-05-23 14:02 ` Steve French
[not found] ` <BANLkTikBOdYnb5nqf=fM3Lh1EptBmkqwbQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 14:15 ` Jeff Layton
2011-05-23 13:54 ` Shirish Pargaonkar
2011-05-23 16:31 ` Gerald Carter
[not found] ` <4DDA8BE6.8000001-I3iY/6WR96Zg9hUCZPvPmw@public.gmane.org>
2011-05-23 16:58 ` Steve French
[not found] ` <BANLkTikpWQaYRbaTGs5WtZ8zWrL8jeeQZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 17:45 ` Jeff Layton
[not found] ` <20110523134542.7d16be6d-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-05-23 17:52 ` Steve French
[not found] ` <BANLkTinX=CA_zeqNPhZpZD9JY3BNk08K_w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 18:07 ` Jeff Layton
[not found] ` <20110523140722.45c4ffc6-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-05-23 18:21 ` Steve French
[not found] ` <BANLkTi=NXhZ1PJKRKA1wYgbcBnw05_X8dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 18:23 ` Christoph Hellwig
[not found] ` <20110523182332.GA13791-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2011-05-23 18:24 ` Steve French
[not found] ` <BANLkTi=wCtL=eHksuLuBPX8swEJjrtiV5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-05-23 18:29 ` Steve French
2011-05-23 18:47 ` Jeff Layton
[not found] ` <20110523144705.56f17271-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-05-23 19:03 ` Steve French
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=20110523071208.5dc935f8@corrin.poochiereds.net \
--to=jlayton-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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