Re: Determine if a file system supports files > 4GB
Re: Determine if a file system supports files > 4GB
- Subject: Re: Determine if a file system supports files > 4GB
- From: Dragan Milić <email@hidden>
- Date: Mon, 12 Aug 2013 17:27:45 +0200
On pon 12.08.2013., at 16.36, Jean-Daniel Dupas wrote:
> That said, if you don't want to drop down to the POSIX API, CFURL also provide…
Not, that's exactly what I want! The rest of the code I'm working on is almost completely written in C, so POSIX API is preferable over CF.
> You are looking for getattrlist()
>
> Search for VOL_CAP_FMT_2TB_FILESIZE in the man page ("If this bit is set the volume format supports file sizes larger than 4GB").
Thanks a lot for this! My knowledge of availability of different POSIX API functions is still fairly limited.
> … CFURL also provide a kCFURLVolumeMaximumFileSizeKey which look suited to your need.
Yes, true. And now I feel somewhat stupid missing that one even though I looked into CFURL documentation.
-- Dragan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden