Ticket #2281 (new defect)

Opened 9 years ago

Last modified 9 years ago

Invalid handling of large files (>4GB) on samba (different filesize, cannot copy)

Reported by: gpsoft Owned by:
Priority: minor Milestone: Future Releases
Component: mc-vfs Version: 4.7.3
Keywords: Cc:
Blocked By: #1 Blocking:
Branch state: Votes for changeset:

Description

latest version (and also all previous) handles large files (probably more than 232 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:
232= 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;

Change History

comment:1 Changed 9 years ago by andrew_b

  • Priority changed from critical to minor
  • Component changed from mc-core to mc-vfs
  • Blocked By 1 added

comment:2 Changed 9 years ago by zaytsev

Use cifs mounts or smbnetfs instead.

Note: See TracTickets for help on using tickets.