mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
c829016e85
from int to int64. MSDN says that SMB_SET_FILE_END_OF_FILE_INFO uses signed 64-bit integer to specify offset, but since smbfs_smb_setfsize() has used plain int, a value was truncated in case when offset was larger than 2G. https://msdn.microsoft.com/en-us/library/ff469975.aspx In particular, now `truncate -s 10G` will work correctly on the mounted SMB share. Reported and tested by: Eugene Grosbein <eugen at grosbein dot net> MFC after: 1 week |
||
---|---|---|
.. | ||
smbfs_io.c | ||
smbfs_node.c | ||
smbfs_node.h | ||
smbfs_smb.c | ||
smbfs_subr.c | ||
smbfs_subr.h | ||
smbfs_vfsops.c | ||
smbfs_vnops.c | ||
smbfs.h |