]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r293679:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 Jan 2016 11:47:03 +0000 (11:47 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 18 Jan 2016 11:47:03 +0000 (11:47 +0000)
commit74d49b798f522e0d3a6f033b39719e51d9146ae9
tree1a79e1806cafb404eaba470a2a619e400b4ae52d
parent72b57cdea86568559080a11188d7ee2d96579e9b
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@294263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/smbfs/smbfs_smb.c
sys/fs/smbfs/smbfs_subr.h
sys/fs/smbfs/smbfs_vnops.c