From: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Shirish Pargaonkar
<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
linux-cifs <linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] cifs: remove "legacy" parm from CIFSSMBQPathInfo
Date: Fri, 29 Oct 2010 09:25:16 +0530 [thread overview]
Message-ID: <4CCA45A4.8030600@suse.de> (raw)
In-Reply-To: <AANLkTimoCvWFbYj+TfCFA-nqd6H=8DTN_e-dw8Hoo_7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 10/28/2010 11:17 PM, Steve French wrote:
> On Thu, Oct 28, 2010 at 11:41 AM, Shirish Pargaonkar
> <shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> On Thu, Oct 28, 2010 at 11:19 AM, Suresh Jayaraman <sjayaraman@suse.de> wrote:
>>> On 10/28/2010 09:12 PM, Steve French wrote:
>>>> What is the code flow then on Windows9x, OS/2 or in the EOPNOSUPP
>>>> case? �Seems strange that we don't retry with legacy or in the case
>>>> where the dialect (or previous call) shows that we don't support the
>>>> infolevel.
>>>
>>> If CIFSSMBOpen fails, the callers seem to be fall back to legacy open using
>>> SMBLegacyOpen().
>>>
>>> cifs_open()
>>>
>>> � � � ...
>>> � � � �if (tcon->ses->capabilities & CAP_NT_SMBS)
>>> � � � � � � � �rc = CIFSSMBOpen(xid, tcon, full_path, disposition,
>>> � � � � � � � � � � � � desiredAccess, CREATE_NOT_DIR, &netfid, &oplock, buf,
>>> � � � � � � � � � � � � cifs_sb->local_nls, cifs_sb->mnt_cifs_flags
>>> � � � � � � � � � � � � � � � � & CIFS_MOUNT_MAP_SPECIAL_CHR);
>>> � � � �else
>>> � � � � � � � �rc = -EIO; /* no NT SMB support fall into legacy open below */
>>>
>>> � � � �if (rc == -EIO) {
>>> � � � � � � � �/* Old server, try legacy style OpenX */
>>> � � � � � � � �rc = SMBLegacyOpen(xid, tcon, full_path, disposition,
>>> � � � � � � � � � � � �desiredAccess, CREATE_NOT_DIR, &netfid, &oplock, buf,
>>> � � � � � � � � � � � �cifs_sb->local_nls, cifs_sb->mnt_cifs_flags
>>> � � � � � � � � � � � � � � � �& CIFS_MOUNT_MAP_SPECIAL_CHR);
>>> � � � �}
>>>
>> This is a general comment but should cifs client be using (server)
>> dialect specific set of smb commands
>> and those smb commands specific info levels instead of sending a
>> command and trying downlevel / legacy
>> if that command failed with "operation not supported"?
>
> We can do the former for smb2, but not for cifs unfortunately.
>
> For cifs there are lots of cases where a dialect doesn't support an
> infolevel it should (or even viceversa).
So that means this patch is applicable to CIFS as is, right?
--
Suresh Jayaraman
prev parent reply other threads:[~2010-10-29 3:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 7:10 [PATCH] cifs: remove "legacy" parm from CIFSSMBQPathInfo Suresh Jayaraman
[not found] ` <4CC921E7.9020403-l3A5Bk7waGM@public.gmane.org>
2010-10-28 15:34 ` Shirish Pargaonkar
2010-10-28 15:42 ` Steve French
[not found] ` <AANLkTikpemR3PVzXSimbu-b1zn4QwQj+0VAEM9xwgYqt-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-28 16:19 ` Suresh Jayaraman
[not found] ` <4CC9A2AB.8090208-l3A5Bk7waGM@public.gmane.org>
2010-10-28 16:41 ` Shirish Pargaonkar
[not found] ` <AANLkTinOsN05m0qM56poq2Q5d6Jss6b3ZnpEXc9Z_4cV-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-28 17:47 ` Steve French
[not found] ` <AANLkTimoCvWFbYj+TfCFA-nqd6H=8DTN_e-dw8Hoo_7g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-29 3:55 ` Suresh Jayaraman [this message]
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=4CCA45A4.8030600@suse.de \
--to=sjayaraman-l3a5bk7wagm@public.gmane.org \
--cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@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