[PATCH 2/2] cifs: don't always drop malformed replies on the floor (try #2)

2011-01-27 Thread Jeff Layton
the callback. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsglob.h |2 +- fs/cifs/connect.c | 27 ++- fs/cifs/transport.c |3 +++ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 921b884

Re: [linux-cifs-client] can someone please explain the performance difference between mount.cifs and smbclient?

2011-01-27 Thread Jeff Layton
... Most likely you're seeing the result of a lack of parallelism in the Linux kernel cifs client. It does not do async writes (yet), which really hinders throughput. I'm hoping to get to work on that in the next few months unless someone else beats me to it... -- Jeff Layton jlay...@redhat.com

Re: [PATCH] cifs: fix length checks in checkSMB

2011-01-27 Thread Jeff Layton
to reject it for that reason alone. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: fix length checks in checkSMB (try #2)

2011-01-28 Thread Jeff Layton
On Fri, 28 Jan 2011 12:53:52 -0600 Steve French smfre...@gmail.com wrote: On Fri, Jan 28, 2011 at 6:24 AM, Jeff Layton jlay...@redhat.com wrote: The cERROR message in checkSMB when the calculated length doesn't match the RFC1001 length is incorrect in many cases. It always says

[PATCH 1/2] cifs: force a reconnect if there are too many MIDs in flight

2011-01-29 Thread Jeff Layton
and clean out the pending_mid_q. While we're at it, clean up the function a bit and eliminate an unnecessary NULL pointer check. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/misc.c | 37 - 1 files changed, 24 insertions(+), 13 deletions(-) diff

[PATCH 2/2] cifs: fix two compiler warning about uninitialized vars

2011-01-29 Thread Jeff Layton
: Shirish Pargaonkar shirishpargaon...@gmail.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/link.c |3 ++- fs/cifs/smbencrypt.c |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 02cd60a..e8804d3 100644 --- a/fs/cifs

Re: linux-next: build warning after merge of the cifs tree

2011-01-31 Thread Jeff Layton
in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html I fixed this a few days ago along with a number of other compiler warnings in: [PATCH] cifs: clean up some compiler warnings ...just waiting for Steve to merge it. -- Jeff

[PATCH] cifs: make CIFS depend on CRYPTO_MD4

2011-01-31 Thread Jeff Layton
Recently CIFS was changed to use the kernel crypto API for MD4 hashes, but the Kconfig dependencies were not changed to reflect this. Signed-off-by: Jeff Layton jlay...@redhat.com Reported-by: Suresh Jayaraman sjayara...@suse.de --- fs/cifs/Kconfig |1 + 1 files changed, 1 insertions(+), 0

[PATCH] mount.cifs: don't try to alter mtab if it's a symlink

2011-01-31 Thread Jeff Layton
. Signed-off-by: Jeff Layton jlay...@samba.org --- mount.cifs.c |2 +- mount.h |1 + mtab.c | 16 3 files changed, 18 insertions(+), 1 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index f537a07..5f29761 100644 --- a/mount.cifs.c +++ b/mount.cifs.c

[PATCH] mount.cifs: fix possible use of uninitialized variable

2011-02-01 Thread Jeff Layton
It's possible to goto return_i in this function at several points before line_buf is set. At that point, the NULL pointer check won't work correctly and we can end up with a SIGSEGV. Signed-off-by: Jeff Layton jlay...@samba.org --- mount.cifs.c |2 +- 1 files changed, 1 insertions(+), 1

Re: [PATCH 1/2] cifs: Add idmap key and related data structures and functions (try #4)

2011-02-02 Thread Jeff Layton
to implement some sort of LRU scheme? Remember that this code is likely to be called quite frequently if someone turns it on. It really is important to make this very efficient. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH 2/2] cifs: Invoke id mapping functions

2011-02-02 Thread Jeff Layton
it ought to be a design goal here particularly since this is likely to happen quite a lot... -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] cifs: Possible slab memory corruption while updating extended stats

2011-02-03 Thread Jeff Layton
eliminate those lines altogether. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: cifs: don't always drop malformed replies on the floor

2011-02-04 Thread Jeff Layton
that so I don't think there's any danger of a buffer overrun or anything, but the stuff at the end could just be garbage or zeroed out. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More

[PATCH] cifs: enable signing flag in SMB header when server has it on

2011-02-04 Thread Jeff Layton
cifs_sign_smb only generates a signature if the correct Flags2 bit is set. Make sure that it gets set correctly if we're sending an async call. This patch fixes: https://bugzilla.kernel.org/show_bug.cgi?id=28142 Reported-and-Tested-by: JG j...@cms.ac Signed-off-by: Jeff Layton jlay

Re: [PATCH] cifs: Possible slab memory corruption while updating extended stats (repost)

2011-02-04 Thread Jeff Layton
unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord

Re: [LSF/MM TOPIC] Unified keys for NFS, CIFS and AFS for security data

2011-02-05 Thread Jeff Layton
currently maintain the cifs-utils package which contains the cifs.upcall program, and wrote most of the in-kernel pieces of the current SPNEGO/krb5 upcall for CIFS. I've also done a some work on the GSSAPI upcall pieces in the RPC layer and in nfs-utils. -- Jeff Layton jlay...@redhat.com

[PATCH 1/2] cifs: remove checks for ses-status == CifsExiting

2011-02-07 Thread Jeff Layton
ses-status is never set to CifsExiting, so these checks are always false. Tested-by: JG j...@cms.ac Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifssmb.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 46c66ed

Re: [PATCH 0/2] cifs: don't perform SMB echoes on un-negotiated socket

2011-02-07 Thread Jeff Layton
On Mon, 7 Feb 2011 11:42:05 -0600 Steve French smfre...@gmail.com wrote: On Mon, Feb 7, 2011 at 7:54 AM, Jeff Layton jlay...@redhat.com wrote: Commit 247ec9b4 makes the SMB echo workqueue job skip doing echoes unless the tcpStatus == CifsGood. Problem: tcpStatus == CifsGood

[PATCH] mount.cifs: reacquire CAP_DAC_READ_SEARCH before calling mount(2)

2011-02-08 Thread Jeff Layton
for this is bypassed. Reported-by: Erik Logtenberg e...@logtenberg.eu Signed-off-by: Jeff Layton jlay...@samba.org --- mount.cifs.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 3a2b539..8e1e32b 100644 --- a/mount.cifs.c +++ b/mount.cifs.c

Re: [PATCH 2/2] cifs: clarify the meaning of tcpStatus == CifsGood

2011-02-09 Thread Jeff Layton
meaningless. I'd also like to see the comment altered to mention why you're checking for maxBuf == 0 as it's not at all obvious. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH] cifs: clean up checks in cifs_echo_request

2011-02-09 Thread Jeff Layton
Follow-on patch to 7e90d705 which is already in Steve's tree... The check for tcpStatus == CifsGood is not meaningful since it doesn't indicate whether the NEGOTIATE request has been done. Also, clarify why we're checking for maxBuf == 0. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs

[PATCH] cifs: don't always drop malformed replies on the floor (try #3)

2011-02-10 Thread Jeff Layton
to find a matching mid_q_entry, mark it as having a malformed response and issue the callback. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsglob.h |2 +- fs/cifs/connect.c | 30 -- fs/cifs/transport.c |3 +++ 3 files changed, 28 insertions

[PATCH] mount.cifs: fix handling of scopeid in resolve_host

2011-02-15 Thread Jeff Layton
...@sernet.de Signed-off-by: Jeff Layton jlay...@samba.org --- resolve_host.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/resolve_host.c b/resolve_host.c index 7687503..69859a3 100644 --- a/resolve_host.c +++ b/resolve_host.c @@ -71,7 +71,7 @@ int resolve_host(const char *host

Re: [PATCH] cifs-utils: handle cifs_idmap type of key to map a SID to either an uid or gid (try #5)

2011-02-15 Thread Jeff Layton
) - 1) + == 0)) { + rc = cifs_sid_resolver(key, buf); + goto out; + } + have = decode_key_description(buf, arg); SAFE_FREE(buf); if ((have DKD_MUSTHAVE_SET) != DKD_MUSTHAVE_SET) { -- Jeff Layton jlay...@redhat.com

Re: [PATCH] cifs: allow calling cifs_build_path_to_root on incomplete cifs_sb

2011-02-16 Thread Jeff Layton
This may also be helped by the d_automount patches that dhowells did recently and that are going into 2.6.38, but I haven't had time to look yet. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org

Re: [PATCH] cifs: fix broken lanman (lm) auth code

2011-02-16 Thread Jeff Layton
; + } } static void -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: fix broken lanman (lm) auth code

2011-02-16 Thread Jeff Layton
On Wed, 16 Feb 2011 08:46:03 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 6:53 AM, Jeff Layton jlay...@redhat.com wrote: On Tue, 15 Feb 2011 17:10:43 -0600 shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com

Re: [PATCH] cifs: fix broken lanman (lm) auth code

2011-02-16 Thread Jeff Layton
On Wed, 16 Feb 2011 09:06:08 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:01 AM, Jeff Layton jlay...@redhat.com wrote: On Wed, 16 Feb 2011 08:46:03 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 6:53 AM, Jeff

Re: [PATCH] cifs: fix broken lanman (lm) auth code

2011-02-16 Thread Jeff Layton
On Wed, 16 Feb 2011 09:27:28 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:21 AM, Jeff Layton jlay...@redhat.com wrote: On Wed, 16 Feb 2011 09:06:08 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 9:01 AM, Jeff

Re: [PATCH] cifs: fix broken lanman (lm) auth code (try #2)

2011-02-16 Thread Jeff Layton
++) { key[i] = (key[i] 1); + if (!odd_parity(key[i])) + key[i] |= 0x1; /* add odd parity bit */ + } } static void -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH] cifs-utils: handle cifs_idmap type of key to map a SID to either an uid or gid (try #5)

2011-02-16 Thread Jeff Layton
On Wed, 16 Feb 2011 12:05:34 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Tue, Feb 15, 2011 at 2:45 PM, Jeff Layton jlay...@redhat.com wrote: On Fri, 11 Feb 2011 12:49:09 -0600 shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com

Re: [PATCH] cifs: Fix broken lanman (lm) auth code (try #4)

2011-02-16 Thread Jeff Layton
to do this that I don't see right offhand. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: Fix broken lanman (lm) auth code (try #4)

2011-02-17 Thread Jeff Layton
On Thu, 17 Feb 2011 00:59:44 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 7:52 PM, Jeff Layton jlay...@redhat.com wrote: On Wed, 16 Feb 2011 18:05:28 -0600 shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com

Re: [PATCH] cifs: Fix broken lanman (lm) auth code (try #4)

2011-02-17 Thread Jeff Layton
On Thu, 17 Feb 2011 07:54:43 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Thu, Feb 17, 2011 at 6:59 AM, Jeff Layton jlay...@redhat.com wrote: On Thu, 17 Feb 2011 00:59:44 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Wed, Feb 16, 2011 at 7:52 PM, Jeff

Re: [PATCH] cifs: cleanup: Rename and remove config flags

2011-02-28 Thread Jeff Layton
= { .encode_fs = */ }; -#endif /* EXPERIMENTAL */ +#endif /* CIFS_NFSD_EXPORT */ Looks good. Reviewed-by: Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] CIFS: Use invalidate_inode_pages2 instead of invalidate_remote_inode (try #2)

2011-02-28 Thread Jeff Layton
think about what the right approach is. Reviewed-by: Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Parsing for obsolete mount options

2011-02-28 Thread Jeff Layton
since you might not know the version until later. In that case, you probably will just have to ignore options that don't have any effect on the version negotiated. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message

Re: [GIT] [CIFS] Allow user names longer than 32 bytes

2011-02-28 Thread Jeff Layton
be a NULL pointer, what prevents the code above from oopsing if no one passes in a user= parm? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [GIT] [CIFS] Allow user names longer than 32 bytes

2011-02-28 Thread Jeff Layton
On Mon, 28 Feb 2011 15:09:00 -0600 Steve French smfre...@gmail.com wrote: On Mon, Feb 28, 2011 at 12:59 PM, Jeff Layton jlay...@redhat.com wrote: On Fri, 25 Feb 2011 12:24:17 -0600 Steve French smfre...@gmail.com wrote: commit 355e57ca063338eb00ea067a7570bb5f136cc513 Author: Steve

Re: [PATCH] cifs: Allow nfsd over cifs

2011-03-01 Thread Jeff Layton
no way to look up inodes by anything like an inode number really makes this whole idea dead on arrival. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] cifs: Allow nfsd over cifs

2011-03-01 Thread Jeff Layton
certainly possible that the file has been renamed on the server or by another client. If that's the case, the NFS client will have no valid path that it can reuse anyway. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH 2/2] cifs: Invoke id mapping functions (try #7)

2011-03-04 Thread Jeff Layton
cifs_idmap_key_type; +extern const struct cred *root_cred; +#endif /* KERNEL */ + extern int match_sid(struct cifs_sid *); extern int compare_sids(const struct cifs_sid *, const struct cifs_sid *); -- Jeff Layton jlay...@poochiereds.net -- To unsubscribe from this list: send the line

Re: [patch] cifs: writing past the end of the array

2011-03-07 Thread Jeff Layton
', 16); memset(p21, '\0', 21); rc = E_md4hash(passwd, p16); perhaps ARRAY_SIZE() instead of a magic number is a better choice ? Agreed. Care to propose a patch? There are almost certainly other places in the code that could use a similar cleanup. -- Jeff Layton jlay

Re: [PATCH] cifs: add missing unicode handling routines needed for smb2

2011-03-07 Thread Jeff Layton
On Mon, 7 Mar 2011 13:28:14 -0500 Jeff Layton jlay...@redhat.com wrote: On Mon, 7 Mar 2011 11:09:06 -0600 Steve French smfre...@gmail.com wrote: On Mon, Mar 7, 2011 at 9:53 AM, Jeff Layton jlay...@redhat.com wrote: On Mon, 7 Mar 2011 09:07:52 -0600 Steve French smfre...@gmail.com

Re: [PATCH 2/2] cifs: Invoke id mapping functions (try #8)

2011-03-08 Thread Jeff Layton
*); -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: Allow to set extended attribute cifs_acl (repost)

2011-03-08 Thread Jeff Layton
change. Do you need to invalidate the metadata for the inode at that point? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: Allow to set extended attribute cifs_acl (repost)

2011-03-08 Thread Jeff Layton
On Tue, 8 Mar 2011 09:17:48 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Tue, Mar 8, 2011 at 8:32 AM, Jeff Layton jlay...@redhat.com wrote: On Mon,  7 Mar 2011 23:00:25 -0600 shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com

Re: [PATCH 2/2] cifs: Invoke id mapping functions (try #8)

2011-03-08 Thread Jeff Layton
. the cost of allocating memory and performing an upcall. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] cifs: Allow to set extended attribute cifs_acl (repost)

2011-03-08 Thread Jeff Layton
On Tue, 8 Mar 2011 09:55:08 -0600 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Tue, Mar 8, 2011 at 9:43 AM, Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Tue, Mar 8, 2011 at 9:22 AM, Jeff Layton jlay...@redhat.com wrote: On Tue, 8 Mar 2011 09:17:48 -0600 Shirish

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-09 Thread Jeff Layton
a SMB_COM_FLUSH for a NFS COMMIT call... -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-09 Thread Jeff Layton
layer doesn't have a mechanism to notify us of a TCP ACK. So, we have to wait for the next-best thing -- a response from the server. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-09 Thread Jeff Layton
On Wed, 9 Mar 2011 18:33:20 -0600 Steve French smfre...@gmail.com wrote: On Wed, Mar 9, 2011 at 5:54 PM, Jeff Layton jlay...@redhat.com wrote: On Wed, 9 Mar 2011 16:01:30 -0600 Steve French smfre...@gmail.com wrote: Except we don't need to wait that long with the page locked ie

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-09 Thread Jeff Layton
On Wed, 9 Mar 2011 18:45:42 -0500 Jeff Layton jlay...@redhat.com wrote: On Thu, 10 Mar 2011 08:51:48 +1100 Dave Chinner da...@fromorbit.com wrote: Sounds like a case for the same dirty page lifecycle as NFS: clean - dirty - writeback - unstable - clean. i.e. the page is unstable after

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-10 Thread Jeff Layton
). The only real danger is from processes that have the page mmapped as they don't care about the page lock at all. A page_mkwrite routine that does a wait_on_page_writeback should prevent that however. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-10 Thread Jeff Layton
contenders for the page lock. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: revalidate inode before generic_file_aio_read

2011-03-10 Thread Jeff Layton
-cifs-client/2010-February/005548.html -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: stable page writes: wait_on_page_writeback and packet signing

2011-03-11 Thread Jeff Layton
. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] [CIFS] Add structure definitions for SMB2 PDUs

2011-03-11 Thread Jeff Layton
On Fri, 11 Mar 2011 14:59:17 -0500 Jeff Layton jlay...@redhat.com wrote: On Fri, 25 Feb 2011 23:25:08 -0600 Steve French smfre...@gmail.com wrote: + +/* one of these for every pending SMB2 request to the server */ +struct smb2_mid_entry { + struct list_head qhead; /* mids waiting

Re: [CIFS] various endian fixes to cifs

2011-03-14 Thread Jeff Layton
-auth_key.response = kmalloc(tilen, GFP_KERNEL); if (!ses-auth_key.response) { Reviewed-by: Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH] cifs: always do is_path_accessible check in cifs_mount

2011-03-14 Thread Jeff Layton
allow the client to chase the DFS referral at mount time instead. Cc: sta...@kernel.org Reported-and-Tested-by: Yogesh Sharma ysha...@cymer.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/cifs

Re: [PATCH] cifs: always do is_path_accessible check in cifs_mount

2011-03-14 Thread Jeff Layton
://bugzilla.redhat.com/show_bug.cgi?id=682829 -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] manpage: add entry for strictcache option

2011-03-15 Thread Jeff Layton
that the files created with mapchars mount option may not be accessible if the share is mounted without that option\. -- 1.7.1 Jeff, what's about this? Merged. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH] CIFS: Use invalidate_inode_pages2 instead of invalidate_remote_inode (try #2)

2011-03-15 Thread Jeff Layton
be changed to an int return and the callers could return errors from it? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 3/3] cifs: don't allow mmap'ed pages to be dirtied while under writeback

2011-03-16 Thread Jeff Layton
module option and always inline the pages when writing. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsfs.c |4 --- fs/cifs/cifsglob.h |1 - fs/cifs/file.c | 62 ++-- 3 files changed, 31 insertions(+), 36 deletions

[PATCH 2/3] cifs: fix broken BCC check in is_valid_oplock_break

2011-03-16 Thread Jeff Layton
The BCC is still __le16 at this point, and in any case we need to use the get_bcc_le macro to make sure we don't hit alignment problems. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/misc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/cifs/misc.c b/fs

[PATCH 1/3] cifs: clarify the meaning of tcpStatus == CifsGood

2011-03-16 Thread Jeff Layton
the state has actually changed from CifsNeedReconnect. Reported-and-Tested-by: JG j...@cms.ac Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsglob.h |3 ++- fs/cifs/cifssmb.c |4 ++-- fs/cifs/connect.c |8 3 files changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH] cifs: don't allow mmap'ed pages to be dirtied while under writeback (try #2)

2011-03-16 Thread Jeff Layton
writeable until the write call has completed. With this, we can also remove the sign_zero_copy module option and always inline the pages when writing. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsfs.c |4 --- fs/cifs/cifsglob.h |1 - fs/cifs/file.c | 62

Re: [CIFS] Cleanup use of CONFIG_CIFS_STATS2 ifdef to make transport routines more readable

2011-03-18 Thread Jeff Layton
cleanup. Don't forget the SoB line though ;) Reviewed-by: Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] CIFS: Use invalidate_inode_pages2 instead of invalidate_remote_inode (try #4)

2011-03-22 Thread Jeff Layton
On Tue, 22 Mar 2011 09:50:43 -0500 Steve French smfre...@gmail.com wrote: On Tue, Mar 22, 2011 at 7:04 AM, Jeff Layton jlay...@redhat.com wrote: On Tue, 22 Mar 2011 15:01:11 +0300 Pavel Shilovsky pias...@etersoft.ru wrote: 2011/3/22 Jeff Layton jlay...@redhat.com: On Wed, 16 Mar 2011

Re: [PATCH] sync_smb2_mid_result

2011-03-23 Thread Jeff Layton
that much of the existing code could be repurposed for SMB2? This approach is going to vastly increase the maintenance burden and I don't see that we gain anything from it. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH] sync_smb2_mid_result

2011-03-23 Thread Jeff Layton
On Wed, 23 Mar 2011 12:42:26 -0500 Steve French smfre...@gmail.com wrote: On Wed, Mar 23, 2011 at 11:06 AM, Jeff Layton jlay...@redhat.com wrote: On Sat, 12 Mar 2011 19:55:55 -0600 Steve French smfre...@gmail.com wrote: Previously CIFS added a function, sync_mid_result, to better handle

Re: [PATCH] sync_smb2_mid_result

2011-03-23 Thread Jeff Layton
On Wed, 23 Mar 2011 13:26:19 -0500 Steve French smfre...@gmail.com wrote: On Wed, Mar 23, 2011 at 1:06 PM, Jeff Layton jlay...@redhat.com wrote: Maybe you misunderstand me. The struct is *exactly the same* aside from a few small differences. It doesn't even need to be a union, IMO

Re: [PATCH] CIFS: Consolidate error handling for cifs_invalidate_mapping

2011-03-24 Thread Jeff Layton
attributes and don't need to + * aware about busy pages (-EBUSY error code). + */ + if (err == -EBUSY) + err = 0; if (!err) { generic_fillattr(dentry-d_inode, stat); -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line

Re: [PATCH] CIFS: Consolidate error handling for cifs_invalidate_mapping

2011-03-25 Thread Jeff Layton
On Fri, 25 Mar 2011 07:56:07 +0300 Pavel Shilovsky pias...@etersoft.ru wrote: 2011/3/25 Jeff Layton jlay...@redhat.com: On Thu, 24 Mar 2011 17:39:47 +0300 Pavel Shilovsky pias...@etersoft.ru wrote: Base of approach for splitting all calls that uses cifs_invalidate_mapping

[PATCH] cifs: set ra_pages in backing_dev_info

2011-03-25 Thread Jeff Layton
as that in the default_backing_dev_info. Cc: sta...@kernel.org Reported-and-Tested-by: Till till2.schae...@uni-dortmund.de Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsfs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 1af2470..fb6a2ad

Re: [PATCH 2/2] Consolidate and extract similar DFS referral expansion code in cifs_mount

2011-03-25 Thread Jeff Layton
); goto try_mount_again; } + goto mount_fail_check; #else /* No DFS support, return error on mount */ rc = -EOPNOTSUPP; #endif Other than that, it looks like a good cleanup. Nice work. -- Jeff Layton jlay...@redhat.com

Re: [PATCH] cifs: set ra_pages in backing_dev_info

2011-03-25 Thread Jeff Layton
On Fri, 25 Mar 2011 16:25:57 -0400 Jeff Layton jlay...@redhat.com wrote: Commit 522440ed made cifs set backing_dev_info on the mapping attached to new inodes. This change caused a fairly significant read performance regression, as cifs started doing page-sized reads exclusively. By virtue

Re: smb2 and shared superblock model

2011-03-26 Thread Jeff Layton
and decide which settings mean that you need to create a new superblock instead of using an existing one on a new mount. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] CIFS: Consolidate error handling for cifs_invalidate_mapping (try #2)

2011-03-27 Thread Jeff Layton
? It shouldn't, AFAICT. The thread getting the -EBUSY ought to be the one that next attempts to access the page. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] allow cifs passwords with utf8 characters

2011-03-27 Thread Jeff Layton
. Shirish probably ought to review this... cc'ing him. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/3] cifs: don't allow mmap'ed pages to be dirtied while under writeback

2011-03-28 Thread Jeff Layton
of the existing callers of generic_file_mmap that set the vm_ops don't do it unless generic_file_mmap succeeds. I'll respin it... -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 2/2] cifs: Invoke id mapping functions (try #10)

2011-03-28 Thread Jeff Layton
, TASK_INTERRUPTIBLE); + if (rc) { + cFYI(1, %s: sidid_pending_wait interrupted %d, + __func__, rc); + return rc; + } + } + + -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send

Re: [PATCH] cifs: don't allow mmap'ed pages to be dirtied while under writeback (try #2)

2011-03-28 Thread Jeff Layton
On Mon, 28 Mar 2011 16:09:09 -0400 Jeff Layton jlay...@redhat.com wrote: If a process has a dirty page mapped into its page tables, then it has the ability to change it while the client is trying to write the data out to the server. If that happens after the signature has been calculated

Re: [PATCH 2/2] cifs: Invoke id mapping functions (try #11)

2011-03-29 Thread Jeff Layton
) then it negatively instantiates the key with a 60s timeout. Is that reasonable behavior here? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[PATCH] cifs: keep received ByteCount in little-endian format

2011-03-29 Thread Jeff Layton
to use the get_bcc inline which should also clean up some unaligned accesses. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifs_debug.c |2 +- fs/cifs/cifspdu.h| 22 + fs/cifs/cifsproto.h |1 - fs/cifs/cifssmb.c| 61

Re: [PATCH] CIFS: Consolidate error handling for cifs_invalidate_mapping (try #3)

2011-03-30 Thread Jeff Layton
an EBUSY as long as the launder_page succeeds. If it doesn't then you probably want to return an error in the above cases anyway. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More

[PATCH 0/5] cifs: various cleanups pointed out by David Howells...

2011-03-31 Thread Jeff Layton
smoke testing with the connectathon tests. Jeff Layton (5): cifs: turn BCC into a static inlined function cifs: remove unneeded variable initialization in cifs_reconnect_tcon cifs: fix comment in validate_t2 cifs: clean up length checks in check2ndT2 cifs: clean up various nits in unicode

[PATCH 1/5] cifs: turn BCC into a static inlined function

2011-03-31 Thread Jeff Layton
Howells dhowe...@redhat.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifspdu.h |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 291d735..de3aa28 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h

[PATCH 4/5] cifs: clean up length checks in check2ndT2

2011-03-31 Thread Jeff Layton
it up per his recommendation... Reported-and-acked-by: David Howells dhowe...@redhat.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c

[PATCH 2/5] cifs: remove unneeded variable initialization in cifs_reconnect_tcon

2011-03-31 Thread Jeff Layton
Reported-and-acked-by: David Howells dhowe...@redhat.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifssmb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 1622978..4f5c6d0 100644 --- a/fs/cifs/cifssmb.c +++ b

[PATCH 5/5] cifs: clean up various nits in unicode routines

2011-03-31 Thread Jeff Layton
instead to use cpu_to_le16, and simply use put_unaligned to set them in the string. Reported-and-acked-by: David Howells dhowe...@redhat.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifs_unicode.c | 35 +-- fs/cifs/cifs_unicode.h |2 +- 2

Re: [PATCH 1/4] Extract DFS referral expansion to new function in cifs_mount

2011-04-01 Thread Jeff Layton
mount_fail_check; #else /* No DFS support, return error on mount */ rc = -EOPNOTSUPP; #endif Looks good. Nice work... Reviewed-by: Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord

Re: [PATCH 2/4] Fix Bug#31092: Unable to mount DFS filesystems from Windows 2008 servers

2011-04-01 Thread Jeff Layton
that check in there. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4] cifs_parse_mount_options: do not tokenize mount options in-place

2011-04-01 Thread Jeff Layton
); return 0; ^^ In the event that there's no error, what frees mountdata_copy here? + +cifs_parse_mount_err: + kfree(mountdata_copy); + return 1; } /** Returns true if srcaddr isn't specified and rhs isn't -- Jeff Layton jlay...@redhat.com

Re: [PATCH 4/4] Simplify handling of submount options in cifs_mount.

2011-04-01 Thread Jeff Layton
) { - if (mount_data != mount_data_global) - kfree(mount_data); /* If find_unc succeeded then rc == 0 so we can not end */ /* up accidently freeing someone elses tcon struct */ if (tcon) Other than the above nit...nice cleanup. Reviewed-by: Jeff

Re: [PATCH 1/4] Extract DFS referral expansion to new function in cifs_mount

2011-04-01 Thread Jeff Layton
On Fri, 1 Apr 2011 11:01:57 -0400 Jeff Layton jlay...@redhat.com wrote: Good point. I wasn't thinking about that case. I think having cifs_sb-mountdata as an unconditional member would be a better option. We don't generally have *that* many superblocks and it would be nice to get rid

Re: [PATCH 1/4] Extract DFS referral expansion to new function in cifs_mount

2011-04-01 Thread Jeff Layton
On Fri, 1 Apr 2011 17:32:29 +0200 sean finney sean...@seanius.net wrote: Hi Jeff, On Fri, Apr 01, 2011 at 11:01:57AM -0400, Jeff Layton wrote: On Fri, 1 Apr 2011 16:26:25 +0200 sean finney sean...@seanius.net wrote: On Fri, Apr 01, 2011 at 09:09:08AM -0400, Jeff Layton wrote

Re: [PATCH] cifs: wrap received signature check in srv_mutex

2011-04-02 Thread Jeff Layton
On Sat, 2 Apr 2011 07:34:30 -0400 Jeff Layton jlay...@redhat.com wrote: While testing my patchset to fix asynchronous writes, I hit a bunch of signature problems when testing with signing on. The problem seems to be that signature checks on receive can be running at the same time

[PATCH 3/5] cifs: don't call mid_q_entry-callback under the Global_MidLock

2011-04-02 Thread Jeff Layton
this requires that we take extra care not to have sync_mid_result remove the mid from the list when the mid is in a state where that has already happened. This prevents list corruption when the mid is sitting on a private list for reconnect or when cifsd is coming down. Signed-off-by: Jeff Layton

<    1   2   3   4   5   6   7   8   9   10   >