SMB2 and allocation size
asn at samba.org
Fri Nov 30 12:08:54 UTC 2018
On Friday, 30 November 2018 12:42:42 CET Stefan Metzmacher wrote:
> Hi Andreas,
> I'd actually like to have the server fixed.
> We need to provide the behavior of a Windows Server
> Should we only look at the block number if size != 0?
Well, if you look at vfswrap_get_alloc_size() the comment is:
Given a stat buffer return the allocated size on disk, taking into
account sparse files.
I thought that is the reason why the size isn't taken into account at all.
However you could just extend the if-clause and leave early. See attached ...
Ralph discovered that 'store dos attributes = yes' also results in a block
size of 8.
Andreas Schneider asn at samba.org
Samba Team www.samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: not available
More information about the samba-technical