Re: Can not copy files >=4GB. Leopard (for NFS)
Re: Can not copy files >=4GB. Leopard (for NFS)
- Subject: Re: Can not copy files >=4GB. Leopard (for NFS)
- From: Rick Macklem <email@hidden>
- Date: Thu, 20 Mar 2008 15:55:28 -0400 (EDT)
On Thu, 20 Mar 2008, Doug Rudoff wrote:
From an OSX 10.5.2 system I have not been able to copy a file larger
than 4Gb using drag-and-drop to an NFS server. The error message is
"Sorry, the operation could not be completed because an unexpected
error occurred (Error Code 0)"
I've confirmed the same problem with these NFS servers:
- Linux CentOS 4.6
- FreeBSD 5.4
- FreeBSD 6.1
- Solaris 9
There has been no problem copying using the command line.
It seems likely that this is related to Quinn's message from November:
http://lists.apple.com/archives/darwin-kernel/2007/Nov/msg00092.html
Quinn wrote:
At 15:01 +0400 20/9/07, Alexander Obuschenko wrote:
There is a problem when copying a file greater than 4 GB to
partitions
mounted by our fs-plugin (NTFS for Mac OS X driver) using the Finder
application.
...
After a bit of digging I've discovered that this error indicates
that the file is too large for the destination volume. Specifically,
the file is 'large' (4 GB or more) but the destination volume does not
indicate that it supports large files.
...
The kernel's getattrlist compatibility code sets this attribute
based on the value you put in the f_capabilities attribute returned by
your VFS plug-in's getattr VFS entry point. In your case you're
stating that your volume understands the VOL_CAP_FMT_2TB_FILESIZE
capability (the value is set in the "valid" field) but it does not
support that capability (the value is clear in the "capabilities"
field).
If your VFS plug-in does actually support files of 4 GB or larger on
disk, I recommend that you claim to support this by returning the
VOL_CAP_FMT_2TB_FILESIZE capability set.
From this I can infer that it appears that Apple's VFS plug-in for NFS
doesn't have doesn't have the VOL_CAP_FMT_2TB_FILESIZE capability set.
My questions are:
1) Is there any way around this NFS 4Gb limitation now?
2) Is Apple aware of this problem?
3) Will this be fixed in an upcoming release?
Obviously I can't answer for Apple, but a quick glance at the xnu-1228
nfs sources shows that VOL_CAP_FMT_2TB_FILESIZE is set when an NFSv3
server replies 0x20000000000ULL (2TByte) or greater in the maxfilesize
reply field of the FSINFO RPC. My guess is that servers you list above
don't report that large a value. (I supose you could argue that they
should actually test for > 4GB, but??)
If you want it to work against your server, you could "cheat" and report
a maxfilesize >= 2GB for NFSv3, assuming you support > 4GB.
I just took a quick glance at the sources, so figure the above is worth
the $0.00 you paid for it:-) rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden