[PATCH] SMB2: fix allocation size return value when opening existing files

Christian M Ambach christian.ambach at de.ibm.com
Mon Oct 10 10:09:40 MDT 2011


Hi Jeremy,
hi Metze,

I wanted to run this patch by you for sanity checking before pushing it.

While looking at the some network traces, I found that in the reply
to a SMB2 CreateFile request that opens an existing file, the reported
allocation size of the file was much too large.
e.g. 25769803776000 while the file size actually had 12582912000 bytes.
FileInfo calls report the correct value, so I thought it would be
a good idea to sync up the code of CreateFile with the FileInfo
code.

Is this fix good to push or did I miss potential sideeffects?



Cheers,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smb2_create-fix-allocation-size-return-value-when.patch
Type: application/octet-stream
Size: 1268 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20111010/755d7fc2/attachment.obj>


More information about the samba-technical mailing list