Re: Testing the 2TB file size limit
Re: Testing the 2TB file size limit
- Subject: Re: Testing the 2TB file size limit
- From: Jim Luther <email@hidden>
- Date: Sun, 25 Jan 2015 23:51:31 -0800
I don't know that the file system APIs on OSX/iOS support files larger than LONG_LONG_MAX since they use a signed-64 bit value for offsets.
Assuming a file system supports it, pathconf(path, _PC_FILESIZEBITS) would be the correct way to determine the maximum file size in bits. _PC_FILESIZEBITS returns the minimum number of bits required to hold the file system's maximum file size as a signed integer. The smallest value returned is 32.
- Jim
> On Jan 24, 2015, at 2:40 PM, James Bucanek <email@hidden> wrote:
>
> Quick question,
>
> I know I can check the VOL_CAP_FMT_2TB_FILESIZE volume capabilities bit to determine if files larger than 4GB are supported on a volume.
>
> Is there a reasonable test to determine if a filesystem supports files larger than 2TB?
>
> James
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Filesystem-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden