Re: [linux-cifs-client] review 5, was Re: projected date for mount.cifs to support DFS junction points

2008-02-18 Thread Steve French
The patch looks fine - but since it does not set obj_type any more - I want to think about it a little more since it may be useful coming back from the open path (although the mode is probably good enough). jra added support to Samba for a new POSIX open/create/mkdir request (which we only use for

Re: [linux-cifs-client] review 5, was Re: projected date for mount.cifs to support DFS junction points

2008-02-15 Thread Steve French
On 2/15/08, Christoph Hellwig [EMAIL PROTECTED] wrote: On Fri, Feb 15, 2008 at 07:37:35PM +0300, Q (Igor Mammedov) wrote: Here is what I've done the last weekend. Attached: fixed patch [5/5] (0001-DFS-patch-that-connects-inode-with-dfs-handling-ops.patch). Not merged yet. fixed

remove some of cifs hard to read ifdefs

2008-02-12 Thread Steve French
On Feb 7, 2008 12:25 PM, Christoph Hellwig [EMAIL PROTECTED] wrote: and while I'm at it a lot of the non-DFS additions to cifs aren't quite up to standards for kernel code either, lots of useless braces, wierd coding style and ifdef mania. The useless braces should be removed now. The ifdef

Re: projected date for mount.cifs to support DFS junction points

2008-02-07 Thread Steve French
On Feb 7, 2008 12:25 PM, Christoph Hellwig [EMAIL PROTECTED] wrote: On Wed, Feb 06, 2008 at 07:43:01AM -0600, Steve French wrote: I only remember missing a loop unwinding on exit style comment of yours that was not addressed in what got integrated. I will go back through your notes again

Re: projected date for mount.cifs to support DFS junction points

2008-02-07 Thread Steve French
On Feb 7, 2008 12:25 PM, Christoph Hellwig [EMAIL PROTECTED] wrote: and while I'm at it a lot of the non-DFS additions to cifs aren't quite up to standards for kernel code either, lots of useless braces, wierd coding style and ifdef mania. Reducing ifdef mania would help (there are about 120

Re: projected date for mount.cifs to support DFS junction points

2008-02-06 Thread Steve French
I only remember missing a loop unwinding on exit style comment of yours that was not addressed in what got integrated. I will go back through your notes again to see if I missed one. I meant to merge the final patch last week but ran out of time. Will try to finish that this week. On Feb 5,

Re: [PATCH] [8/18] BKL-removal: Remove BKL from remote_llseek

2008-01-28 Thread Steve French
On Jan 28, 2008 2:17 AM, Andi Kleen [EMAIL PROTECTED] wrote: I completely agree. If one thread writes A and another writes B then the kernel should record either A or B, not ((A 0x) | (B 0x)) The problem is pretty nasty unfortunately. To solve it properly I think

Re: [PATCH] [8/18] BKL-removal: Remove BKL from remote_llseek

2008-01-27 Thread Steve French
Don't you need to a spinlock/spinunlock(i_lock) or something similar (there isn't a spinlock in the file struct unfortunately) around the reads and writes from f_pos in fs/read_write.c in remote_llseek with your patch since the reads/writes from that field are not necessarily atomic and threads

Re: [PATCH] [8/18] BKL-removal: Remove BKL from remote_llseek

2008-01-27 Thread Steve French
PROTECTED] wrote: On Sun, 2008-01-27 at 10:57 -0600, Steve French wrote: Don't you need to a spinlock/spinunlock(i_lock) or something similar (there isn't a spinlock in the file struct unfortunately) around the reads and writes from f_pos in fs/read_write.c in remote_llseek with your patch

Re: review 1, was Re: projected date for mount.cifs to support DFS junction points

2008-01-13 Thread Steve French
On Jan 13, 2008 1:40 PM, Christoph Hellwig [EMAIL PROTECTED] wrote: Unfortunately I couldn't find an mbox archive of the cifs client list anywhere, so I'll send you the review in reply to this mail, with one reply per patch. + * This library is free software; you can redistribute it and/or

Re: projected date for mount.cifs to support DFS junction points

2008-01-11 Thread Steve French
on shrinkable mounts by using a pointer to the parent's mountdata. On Jan 11, 2008 3:07 AM, Christoph Hellwig [EMAIL PROTECTED] wrote: On Thu, Jan 10, 2008 at 02:28:40PM -0600, Steve French wrote: to CIFS not supporting DFS junction points. Any projected date for that to be supported? I

Re: Acls and cifs mounted shares

2008-01-04 Thread Steve French (smfltc)
There seems to be a lot of activity in the cifs development team with respect to acls. Does this mean that we can look forward to functional acl permissions in a recent or forthcoming kernel? Yes. 2.6.24 will have support for returning a more accurate mode for a file on a cifs mount based on

Re: Allow very large writes

2007-11-08 Thread Steve French
=1004000 36.3 MB/sec On the same machine with cifs mounted over localhost to Samba/ext3 instead of Samba/XFS wsize=56K (default) 22 MB/sec wsize=504000 33.5 MB/sec wsize=1004000 39.5 MB/sec On Nov 8, 2007 9:50 AM, Steve French [EMAIL PROTECTED] wrote: I like your code much better than my quick

Re: Large SMBwriteX testing.

2007-11-07 Thread Steve French
I have verified that it works for the case in which min receivefile size is under 128K. When I set it to 25 and tried to read 148000 there were two or three problems (reply_write_and_X in Samba is calling smb_len instead of smb_len_large and it is looking for req-unread_bytes incorrectly in a

Re: qstr abuse in git-cifs

2007-11-06 Thread Steve French
I suspect that bad things are happening in there I doubt that it is too bad since various filesystems (including JFS and CIFS) have always written over qstr-name in these dentries in order to better handle case insensitive compares. Other than trying to remove the compiler warning recently

No longer set S_ISVTX when mounted to Windows

2007-11-01 Thread Steve French
Not sure why the cifs code sets the S_ISVTX bit when mounted to Windows servers. I think the intent was to turn off all of the high bits except that (S_ISGID) needed to indicate mandatory locking (mandatory locking is set by having S_ISGID on and group execute, S_IXGRP, off). When reviewing the

punching holes in files

2007-11-01 Thread Steve French
madvise_remove (in Linux) is used to free the backing store associated with pages (punching a hole in a file). This is one of the vfs operations that we do not send over the wire to Samba (so this call would return -ENOSYS locally). Any thoughts on whether this could be done with an obscure

Re: Networked filesystems vs backing_dev_info

2007-10-27 Thread Steve French
On 10/27/07, Peter Zijlstra [EMAIL PROTECTED] wrote: Hi, I had me a little look at bdi usage in networked filesystems. NFS, CIFS, (smbfs), AFS, CODA and NCP And of those, NFS is the only one that I could find that creates backing_dev_info structures. The rest seems to fall back to

Re: request for patches: showing mount options

2007-07-27 Thread Steve French
cifs and nfs (probably others) have some mount options which are mount order dependent ie may be invalid or ignored when you have more than one mount to the same server, or mount the same resource in two places with different options. In the long run, at least for cifs, we may be able to better

Re: mount options for selectively disabling parts of CIFS Unix Extensions

2007-07-17 Thread Steve French
One example (Samba bug # 2008) is so that Samba will follow symlinks on the server side (rather than have the client resolve them). On 7/17/07, J. Bruce Fields [EMAIL PROTECTED] wrote: On Mon, Jul 16, 2007 at 05:40:46PM -0500, Steve French wrote: I have seen various requests from users

Re: [linux-cifs-client] Re: mount options for selectively disabling parts of CIFS Unix Extensions

2007-07-17 Thread Steve French
On 7/17/07, Trond Myklebust [EMAIL PROTECTED] wrote: In CIFS parlance, the equivalent would be to mount \\SERVER\SHAREA\foo and \\SERVER\SHAREA\bar with different mount options: I'm not sure that is really what Steve is proposing. Yes - Or perhaps simply \\server\shareA being mounted twice to

mount options for selectively disabling parts of CIFS Unix Extensions

2007-07-16 Thread Steve French
I have seen various requests from users to disable part of the CIFS Unix Extensions on mount (in some cases fall back to the more primitive Windows behavior) but am wondering how far down this line of thought I should go ... how many mount options to add to cifs and is there a precedent in other

Re: mount options for selectively disabling parts of CIFS Unix Extensions

2007-07-16 Thread Steve French
and is reconnected at which time the server will see the Unix Extensions disabled) 4) mount succeeds and no Unix Extension requests are sent on the tree id for shareB (the requests to shareA are unaffected) etc. Ideas? On 7/16/07, Steve French [EMAIL PROTECTED] wrote: I have seen various requests from users

NTLMv2 patch for CIFS signing

2007-07-09 Thread Steve French
Yehuda, I have added your patch for NTLMv2 signatures for CIFS. I had to change about 10 places due to whitespace changes. It tested out fine, but would appreciate one more check. The patch is:

Re: [PATCH] CIFS: make cifsd (more)

2007-06-25 Thread Steve French
Jeff, Not seeing any objections to your revised approach (to not allowing signals for cifsd kernel thread), I just merged something similar to your patch to the cifs-2.6.git tree (also fixed some nearby lines that went past 80 columns). Thanks Signed-off-by: Jeff Layton [EMAIL PROTECTED]

Re: [PATCH] CIFS should honour umask

2007-06-07 Thread Steve French
the same mount. Thoughts? Steve French wrote: Thanks - it looks almost right but you missed mknod case and your patch had some whitespace/formatting problems. Could you try the following and make sure it works for you? If so will merge. - To unsubscribe from this list: send the line

[PATCH] support larger cifs network reads

2007-05-31 Thread Steve French
With Samba 3.0.26pre it is now possible for a cifs client (one which supports the newest Unix/Posix cifs extensions) to request up to almost 8MB at a time on a cifs read request. A patch for the cifs client to support larger reads follows. In this patch, using very large reads is not the

Re: linux-cifs-client Digest, Vol 39, Issue 19

2007-02-25 Thread Steve French (smfltc)
' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of linux-cifs-client digest... Today's Topics: 1. i_mutex and deadlock (Steve French (smfltc)) 2. Re: i_mutex

i_mutex and deadlock

2007-02-23 Thread Steve French (smfltc)
A field in i_size_write (i_size_seqcount) must be protected against simultaneous update otherwise we risk looping in i_size_read. The suggestion in fs.h is to use i_mutex which seems too dangerous due to the possibility of deadlock. There are 65 places in the fs directory which lock an

Re: [Fwd: [PATCH] consolidate generic_writepages and mpage_writepages]

2007-02-16 Thread Steve French (smfltc)
From: Miklos Szeredi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] consolidate generic_writepages and mpage_writepages Date: Fri, 16 Feb 2007 17:23:25 +0100 From: Miklos Szeredi [EMAIL PROTECTED] Clean up massive

Re: [PATCH] mm: return ENOBUFS instead of ENOMEM in generic_file_buffered_write

2005-08-31 Thread Steve French
As noticed by Dmitry Torokhov, write() can not return ENOMEM It turns out that Linux is ok here returning ENOMEM (even from a strict POSIX perspective) so the patch is not needed. I consulted our longstanding POSIX workgroup representative to see what he could find out about this topic, and

Re: AIO and vectored I/O support for cifs

2005-04-03 Thread Steve French
Suparna Bhattacharya wrote: cc'ing linux-aio, for the AIO part of the discussion. You might be able to find some of your answers in the archives. there are several tests for AIO - I tend to use Chris Mason's aio-stress which can be used to compare performance in terms of throughput for streaming

AIO and vectored I/O support for cifs

2005-03-25 Thread Steve French
Christoph, I had time to add the generic vectored i/o and async i/o calls to cifs that you had suggested last month. They are within the ifdef for the CIFS_EXPERIMENTAL config option for the time being. I would like to do more testing of these though - are there any tests (even primitive