[Samba] smbd reads entire directory when creating files?

2008-10-17 Thread Oleg Laktionov
Hi, http://lists.samba.org/archive/samba/2004-December/096861.html Was this problem solved? If yes, what way? Your assistance will be greatly appreciated! Thanks in advance. -- best regards, Oleg Laktionov -- To unsubscribe from this list go to the following URL and read the instructions:

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 was

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,

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

2004-12-08 Thread Jeremy Allison
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 was intending to add :-). I'm

[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 Jeremy Allison
On Tue, Dec 07, 2004 at 02:08:56PM -0600, Matt Mitchell wrote: Apologies if this is a FAQ. Kind of. 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

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 a