wireshark trace sent to jra Also related strange behavior to Samba 4.1.9 ... It is not just that I see the allocation size not set when I send an allocation size of 5.4M for a 2M file. I see the file size shrunk when I sent the request for a MUCH smaller size. I sent a request to set allocation size to length 10000 and the file size of the 2M file (and interestingly also allocation size) was set to 1MB.. On Sat, Jul 19, 2014 at 12:14 AM, Jeremy Allison <jra@xxxxxxxxx> wrote: > 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 ? -- Thanks, Steve -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html