setting allocation size in cifs/smb3

Jeremy Allison jra at samba.org
Fri Jul 18 23:14:28 MDT 2014


On Fri, Jul 18, 2014 at 11:49:04PM -0500, Steve French wrote:
> Windows shrinks the file (unlike Linux) when you do the allocate
> before end of file, but when I tried the same call to
> Samba it seemed to ignore it, return success and leave
> file size alone.

That's a bug - the code does use ftruncate if
the new allocated size is less than file size.

Can you send me a wireshark trace of what
you're sending please ?


More information about the samba-technical mailing list