id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking branch_state votes 2281 Invalid handling of large files (>4GB) on samba (different filesize, cannot copy) gpsoft "latest version (and also all previous) handles large files (probably more than `2^32` bytes or more than around 4 GB limit) incorrectly. File size is incorrect in file listing and when you try to copy this file it will copy forever. Example: in mc listing: │ file.iso │396384K│Jul 1 2009| The same file with smbclient listing: file.iso A 4700864512 Wed Jul 1 00:04:03 2009 Probably it is a overflow in some 32 bit unsigned integer, because: `2^32` = 4294967296 4700864512-4294967296 = 405897216 405897216 / 1024 = 396384K ... which is exactly what you can see in mc file listing. You can't copy this file successfully from remote smb system to local filesystem - it will copy forever, the size of file after a while is bigger than the size of original file. With ftp I don't have the same problem. Software versions below, if you need any other informations I can send screenshots or other informations. $ smbclient -V Version 3.2.5 $ /usr/local/bin/mc -V GNU Midnight Commander 4.7.3 Virtual File Systems: tarfs, extfs, cpiofs, ftpfs, fish, smbfs With builtin Editor Using system-installed S-Lang library with terminfo database With subshell support as default With support for background operations With mouse support on xterm With internationalization support With multiple codepages support Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64; " defect closed minor mc-vfs 4.7.3 invalid 1 no branch