]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r293679:
authorae <ae@FreeBSD.org>
Mon, 18 Jan 2016 11:47:03 +0000 (11:47 +0000)
committerae <ae@FreeBSD.org>
Mon, 18 Jan 2016 11:47:03 +0000 (11:47 +0000)
commit357c6ab5c13d151385c6c5e995295fbd4fc2e5aa
tree1a79e1806cafb404eaba470a2a619e400b4ae52d
parentf4e3dd9ef2704a235d6c9e4ab7efd521b15759c0
MFC r293679:
  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.
sys/fs/smbfs/smbfs_smb.c
sys/fs/smbfs/smbfs_subr.h
sys/fs/smbfs/smbfs_vnops.c