kern/159048: [smbfs] smb mount corrupts large files

Jonathan Hanna jhanna at
Tue Jul 19 23:00:24 UTC 2011

>Number:         159048
>Category:       kern
>Synopsis:       [smbfs] smb mount corrupts large files
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 23:00:24 UTC 2011
>Originator:     Jonathan Hanna
>Release:        amd64 9.0-CURRENT r223714
FreeBSD xxx 9.0-CURRENT FreeBSD 9.0-CURRENT #20 r223714: Sat Jul  2 00:16:29 PDT 2011     yyy  amd64

Copying files from a FreeBSD machine to an Airport Extreme via an smbfs mount
works for files under 4G but fails silently for files over 4G.
Curiously, the file size reported on the target SMB file system does increase
past 4G until the copy is complete. After the copy completes, the target file size is 4294967296 and the beginning of the target file does not match the beginning of the source file.

In case they are relevant, these messages are found in syslog:
kernel: smb_co_lock: recursive lock for object 1
kernel: smb_iod_recvall: drop resp with mid 15759



More information about the freebsd-bugs mailing list