Re: Can not copy files >=4GB. Leopard (9B18)
Re: Can not copy files >=4GB. Leopard (9B18)
- Subject: Re: Can not copy files >=4GB. Leopard (9B18)
- From: Quinn <email@hidden>
- Date: Tue, 20 Nov 2007 12:19:08 +0000
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.
Nice timing! I debugged this yesterday as part of a DTS incident.
Here's the text I sent that developer:
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.
Clearly the Finder could be better about reporting this error. I've
filed a bug <rdar://problem/5608271> to request a decent error
message.
To determine if a volume supports large files the Finder checks the
bSupports2TBFiles flag returned by PBHGetVolParms. For your volume
this flag is not set.
File Manager sets the bSupports2TBFiles flag based on the value your
file system returns for the VOL_CAP_FMT_2TB_FILESIZE bit in the
VOL_CAPABILITIES_FORMAT entries of the ATTR_VOL_CAPABILITIES
attribute returned by <x-man-page://2/getattrlist>.
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.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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