--- - branch: MAIN date: Sun Oct 18 22:53:36 UTC 2009 files: - new: '1.31' old: '1.30' path: src/sys/netsmb/smb_smb.c pathrev: src/sys/netsmb/smb_smb.c@1.31 type: modified id: 20091018T225336Z.8f7185d0c681ed1c832a0b0ccf01f2ad3575df63 log: | Fix detection of SMB capabilities according to the CIFS spec: 1.) SMB_CAP_LARGE_FILES advertises support for 64-bit file offsets. 2.) SMB_CAP_LARGE_READX and SMB_CAP_LARGE_WRITEX advertise support for large reads and writes (larger than 64KB). The code previously only used SMB_CAP_LARGE_READX and SMB_CAP_LARGE_WRITEX which is not correct and doesn't work for the Apple Time Capsule which only supports SMB_CAP_LARGE_FILES. With these changes SMBFS can copy a 5GB to a Time Capsule and read it back without problems. Thanks a lot to Allen Briggs for pointing out the broke assumptions and explaining the CIFS spec to me. This fixes PR kern/42175. module: src subject: 'CVS commit: src/sys/netsmb' unixtime: '1255906416' user: tron