Having a devil of a time figuring this out. I've got the latest MacOSX (10.13.2). I am trying to copy a file to an external drive for my backups. Ran into an error where cp returns "Result too large" and stops copying. Through debugging I eliminated the external drive and am using /tmp as a destination. Same error. I have over 600gb free on my drive, so it's not a full drive issue. I don't think it is a filesize issue either. The file that is roughly 4.1gb errors, while the file that is 4.3gb copies without issue.
Source files:
-rw------- 1 me staff 4332060672 Jan 22 15:13 Virtual Disk-cl1-s007.vmdk
-rw------- 1 me staff 4115791872 Jan 22 14:48 Virtual Disk-cl1-s008.vmdk
Copying file 1 (successful):
C02W114MHTDF:TNT-VPN.vmwarevm me$ cp Virtual\ Disk-cl1-s007.vmdk /tmp/
C02W114MHTDF:TNT-VPN.vmwarevm me$ echo $?
0
Copying file 2 (fails):
C02W114MHTDF:TNT-VPN.vmwarevm me$ cp Virtual\ Disk-cl1-s008.vmdk /tmp/
cp: Virtual Disk-cl1-s008.vmdk: Result too large
C02W114MHTDF:TNT-VPN.vmwarevm me$ echo $?
1
After the copy, the files that were copied look like this in /tmp:
-rw------- 1 me wheel 4332060672 Jan 22 16:26 /private/tmp/Virtual Disk-cl1-s007.vmdk
-rw-------@ 1 me wheel 2227175424 Jan 22 16:26 /private/tmp/Virtual Disk-cl1-s008.vmdk
Notice that the second file only copied about 2.2gb of the 4.1gb file, but the first file copied over with the proper size.
I am at a loss to figure this one out. In all my Unix and Linux years, I've never seen this type of error out of cp.
I can use tar and mv without any issue. cksum fails with the same error.
The program that I'm using for my backups, though, uses something similar to cp, so I'm trying to debug with that first before ripping that tool out for something different that would work.
Mark