From: Pavel Shilovsky <piastry@etersoft.ru>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org,
wine-devel@winehq.org
Subject: Re: [PATCH v2 4/8] CIFS: Add O_DENY* open flags support
Date: Tue, 5 Feb 2013 15:54:21 +0400 [thread overview]
Message-ID: <CAKywueR0tHyR+o7YV+AGo_AE4AP1b0Xi-TwgemJGwft4HityRA@mail.gmail.com> (raw)
In-Reply-To: <20130130221657.GD15584@fieldses.org>
2013/1/31 J. Bruce Fields <bfields@fieldses.org>:
> On Thu, Jan 17, 2013 at 08:53:00PM +0400, Pavel Shilovsky wrote:
>> Make CIFSSMBOpen take share_flags as a parm that allows us
>> to pass new O_DENY* flags to the server.
>>
>> Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
>> ---
>> fs/cifs/cifsacl.c | 10 ++++++----
>> fs/cifs/cifsglob.h | 12 +++++++++++-
>> fs/cifs/cifsproto.h | 9 +++++----
>> fs/cifs/cifssmb.c | 47 +++++++++++++++++++++++++----------------------
>> fs/cifs/dir.c | 13 ++++++++-----
>> fs/cifs/file.c | 12 ++++++++----
>> fs/cifs/inode.c | 11 ++++++-----
>> fs/cifs/link.c | 10 +++++-----
>> fs/cifs/readdir.c | 2 +-
>> fs/cifs/smb1ops.c | 15 ++++++++-------
>> fs/cifs/smb2file.c | 10 +++++-----
>> fs/cifs/smb2inode.c | 4 ++--
>> fs/cifs/smb2ops.c | 10 ++++++----
>> fs/cifs/smb2pdu.c | 6 +++---
>> fs/cifs/smb2proto.h | 14 ++++++++------
>> 15 files changed, 107 insertions(+), 78 deletions(-)
>>
>> diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c
>> index 0fb15bb..a42c77f 100644
>> --- a/fs/cifs/cifsacl.c
>> +++ b/fs/cifs/cifsacl.c
>> @@ -1184,8 +1184,9 @@ static struct cifs_ntsd *get_cifs_acl_by_path(struct cifs_sb_info *cifs_sb,
>> create_options |= CREATE_OPEN_BACKUP_INTENT;
>>
>> rc = CIFSSMBOpen(xid, tcon, path, FILE_OPEN, READ_CONTROL,
>> - create_options, &fid, &oplock, NULL, cifs_sb->local_nls,
>> - cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
>> + FILE_SHARE_ALL, create_options, &fid, &oplock,
>> + NULL, cifs_sb->local_nls,
>> + cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
>> if (!rc) {
>> rc = CIFSSMBGetCIFSACL(xid, tcon, fid, &pntsd, pacllen);
>> CIFSSMBClose(xid, tcon, fid);
>> @@ -1245,8 +1246,9 @@ int set_cifs_acl(struct cifs_ntsd *pnntsd, __u32 acllen,
>> access_flags = WRITE_DAC;
>>
>> rc = CIFSSMBOpen(xid, tcon, path, FILE_OPEN, access_flags,
>> - create_options, &fid, &oplock, NULL, cifs_sb->local_nls,
>> - cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
>> + FILE_SHARE_ALL, create_options, &fid, &oplock,
>> + NULL, cifs_sb->local_nls,
>> + cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
>
> It would be easier to tell what you changed in the above two chunks if
> you didn't change the whitespace at the same time.
>
> --b.
Ok, thank - will fix it in the further version of the patch.
--
Best regards,
Pavel Shilovsky.
next prev parent reply other threads:[~2013-02-05 11:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 16:52 [PATCH v2 1/8] locks: make flock_lock_file take is_conflict callback parm Pavel Shilovsky
2013-01-17 16:52 ` [PATCH v2 2/8] fcntl: Introduce new O_DENY* open flags Pavel Shilovsky
2013-01-17 16:52 ` [PATCH v2 3/8] vfs: Add O_DENYREAD/WRITE flags support for open syscall Pavel Shilovsky
2013-01-30 22:16 ` J. Bruce Fields
2013-02-05 11:45 ` Pavel Shilovsky
2013-02-05 14:35 ` J. Bruce Fields
2013-02-07 9:53 ` Pavel Shilovsky
2013-02-07 14:18 ` J. Bruce Fields
2013-02-07 14:32 ` Pavel Shilovsky
2013-02-07 14:41 ` J. Bruce Fields
2013-02-07 16:00 ` Pavel Shilovsky
2013-02-07 16:19 ` J. Bruce Fields
2013-02-07 16:50 ` Pavel Shilovsky
2013-02-07 17:03 ` J. Bruce Fields
2013-01-17 16:53 ` [PATCH v2 4/8] CIFS: Add O_DENY* open flags support Pavel Shilovsky
2013-01-30 22:16 ` J. Bruce Fields
2013-02-05 11:54 ` Pavel Shilovsky [this message]
2013-01-17 16:53 ` [PATCH v2 5/8] CIFS: Use NT_CREATE_ANDX command for forcemand mounts Pavel Shilovsky
2013-01-17 16:53 ` [PATCH v2 6/8] CIFS: Translate SHARING_VIOLATION to -ETXTBSY error code for SMB2 Pavel Shilovsky
2013-01-17 16:53 ` [PATCH v2 7/8] NFSv4: Add O_DENY* open flags support Pavel Shilovsky
2013-01-17 16:53 ` [PATCH v2 8/8] NFSD: Pass share reservations flags to VFS Pavel Shilovsky
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=CAKywueR0tHyR+o7YV+AGo_AE4AP1b0Xi-TwgemJGwft4HityRA@mail.gmail.com \
--to=piastry@etersoft.ru \
--cc=bfields@fieldses.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=wine-devel@winehq.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
all inboxes | Powered by JetHome®