summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_subr.h
Commit message (Collapse)AuthorAgeFilesLines
* sys/fs: spelling fixes in comments.pfg2016-04-291-1/+1
| | | | No functional change.
* Change the type of newsize argument in the smbfs_smb_setfsize() functionae2016-01-111-1/+2
| | | | | | | | | | | | | | 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
* Use SMB_QUERY_FS_SIZE_INFO request to populate statfs structure.ae2014-04-151-2/+0
| | | | | | | When server doesn't support this request, try to use SMB_INFO_ALLOCATION. And use SMB_COM_QUERY_INFORMATION_DISK request as fallback. MFC after: 2 weeks
* Fix panic due to page faults while in kernel mode, under conditions ofdavide2012-10-311-0/+3
| | | | | | | | | VM pressure. The reason is that in some codepaths pointers to stack variables were passed from one thread to another. In collaboration with: pho Reported by: pho's stress2 suite Sponsored by: iXsystems inc.
* Switch to our preferred 2-clause BSD license.joel2010-04-071-7/+1
| | | | Approved by: bp
* Make smbfs capable to use 16bit char set in filenames.takawata2005-05-041-1/+1
| | | | PR:78110
* Make smbfs_debuglevel private.phk2005-02-101-3/+0
|
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+1
|
* Implement additional SMB calls to allow proper update of file size as somebp2002-09-181-0/+3
| | | | | | | | | | file servers fail to do it in the right way. New NFLUSHWIRE flag marks pending flush request(s). NB: not all cases covered by this commit. Obtained from: Darwin
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-2/+2
| | | | also don't use ANSI string concatenation.
* Import kernel part of SMB/CIFS requester.bp2001-04-101-0/+187
Add smbfs(CIFS) filesystem. Userland part will be in the ports tree for a while. Obtained from: smbfs-1.3.7-dev package.
OpenPOWER on IntegriCloud