• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Testing the 2TB file size limit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Testing the 2TB file size limit
      • From: Jorgen Lundman <email@hidden>
References: 
 >Testing the 2TB file size limit (From: James Bucanek <email@hidden>)

  • Prev by Date: Testing the 2TB file size limit
  • Next by Date: Re: Testing the 2TB file size limit
  • Previous by thread: Testing the 2TB file size limit
  • Next by thread: Re: Testing the 2TB file size limit
  • Index(es):
    • Date
    • Thread