freebsd-skq/sys/fs/smbfs
ae 8c83f31276 Change the type of newsize argument in the smbfs_smb_setfsize() function
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
2016-01-11 18:11:06 +00:00
..
smbfs_io.c Fix breakage caused by r292373 in ZFS/FUSE/NFS/SMBFS. 2015-12-16 23:48:50 +00:00
smbfs_node.c
smbfs_node.h
smbfs_smb.c Change the type of newsize argument in the smbfs_smb_setfsize() function 2016-01-11 18:11:06 +00:00
smbfs_subr.c Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST. No 2015-01-30 22:02:32 +00:00
smbfs_subr.h Change the type of newsize argument in the smbfs_smb_setfsize() function 2016-01-11 18:11:06 +00:00
smbfs_vfsops.c Fix smbfs to not zero out statfs f_flags field. Previously, this 2014-11-21 06:21:39 +00:00
smbfs_vnops.c Change the type of newsize argument in the smbfs_smb_setfsize() function 2016-01-11 18:11:06 +00:00
smbfs.h