[Samba] 1 byte writes
limoncelli at web.de
Wed Mar 8 18:56:35 GMT 2006
Jeremy Allison wrote:
> What the client is trying to do is extend the file here.
> It's writing one byte at increasingly large offsets to
> force the filesystem to extend the allocated storage (as
> sparse files are rare on NTFS and of course what other
> filesystems are there :-). Have you tried playing with
> the allocation size ? We normally report it as 1 meg to
> stop the clients doing such stupidity.
Thanks a lot for the helpful response. The current (default) settings are:
myserver# testparm -s -v /etc/samba/smb.conf 2>&1 | grep alloc
allocation roundup size = 1048576
strict allocate = No
Given my symptoms and typical file sizes of several megabytes, are you
suggesting to increase "allocation roundup size" by, say, a factor of
10? I just need an educated guess to start with before users return to
work tomorrow morning.
More information about the samba