RE: Re: Can not copy files >=4GB. Leopard (for NFS)
RE: Re: Can not copy files >=4GB. Leopard (for NFS)
- Subject: RE: Re: Can not copy files >=4GB. Leopard (for NFS)
- From: "Doug Rudoff" <email@hidden>
- Date: Tue, 1 Apr 2008 11:16:27 -0700
- Thread-topic: Re: Can not copy files >=4GB. Leopard (for NFS)
I found a workaround for this problem:
> 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
The one NFS server not originally tested was a Mac OS X Server. And
with that, files larger than 4Gb _can_ be copied with the
Finder. Looks like Apple skipped the testing on non-Mac NFS servers.
I compared the NFS pcaps between a 10.4 X Server and a FreeBSD
server. The difference? The X Server's reply to an NFS FSINFO message
sets maxfilesize to UINT64_MAX (0xffffffffffffffff = 16 exabytes),
which is a completely invalid value.
I modified the nfs server code in the kernel I'm using to use
UINT64_MAX as maxfilesize as well. And now ... the Finder can copy
files more than 4Gb from a 10.5.2 client to my NFS server.
So, as long as you're willing to modify your kernel, there is a
workaround. The side effect is that the client thinks it can send
files that exceed the NFS server's capabilities.
This is caused by two bugs on Apple's part:
1) The X Server NFS server returns an invalid maxfilesize.
2) 10.5.2's NFS client code will only allow files more than 4Gb to be
transferred if the NFS server's reports its maxfilesize as
UINT64_max.
Macko's previous reply indicates that Apple is aware of bug #2 and is
in the process of fixing it for a later release.
Doug Rudoff | Software Engineer
Isilon Systems P +1-206-315-7500 F +1-206-315-7485
www.isilon.com D +1-206-315-7674
How breakthroughs begin.(tm)
_______________________________________________
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