Re: [Samba] smbd reads entire directory when creating files?

2004-12-09 Thread Matt Mitchell
Jeremy Allison wrote: On Wed, Dec 08, 2004 at 01:37:23PM -0600, Matt Mitchell wrote: Obviously such a special case would make the code ugly...but I might try patching it just for my own testing to see if it makes any difference. Any pointers you can offer? That's exactly the case I

Re: [Samba] smbd reads entire directory when creating files?

2004-12-08 Thread Matt Mitchell
Jeremy Allison wrote: A strace on the smbd process receiving the files from the windows box (it is mapped as a share on the 2k3 server) reveals that smbd is looking up the entire directory (with getdents64) every time it writes a file. Several times, in fact. So as the number of files grows,

[Samba] smbd reads entire directory when creating files?

2004-12-07 Thread Matt Mitchell
Apologies if this is a FAQ. We are saddled with some directories full of production image files that number in the hundreds of thousands to the millions. (Yes, I know this is bad.) They reside on a couple of Win 2003 boxes that are flaky and unreliable. I was hoping to copy them over to a

Re: [Samba] smbd reads entire directory when creating files?

2004-12-07 Thread Matt Mitchell
Jeremy Allison wrote: On Tue, Dec 07, 2004 at 02:08:56PM -0600, Matt Mitchell wrote: A strace on the smbd process receiving the files from the windows box (it is mapped as a share on the 2k3 server) reveals that smbd is looking up the entire directory (with getdents64) every time it writes

[Samba] suggestions about file ownership in multi-user sandbox

2004-08-18 Thread Matt Mitchell
some gymnastics. I'm not aware of any such feature. If nothing can be done, I suppose I will have to suggest that we move to per-user working copies, but if anyone has any other suggestions I'd love to hear them. Thanks in advance, Matt Mitchell -- To unsubscribe from this list go

Re: [Samba] suggestions about file ownership in multi-user sandbox

2004-08-18 Thread Matt Mitchell
Jeremy Allison wrote: On Wed, Aug 18, 2004 at 01:23:15PM -0500, Matt Mitchell wrote: Obviously this is a feature of filesystem semantics, so my question is this: does samba provide a hook or feature, similar to the preexec/postexec script, except for a file write? I am willing to deal