• 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: HFS or HFS+? That is the statfs question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HFS or HFS+? That is the statfs question


  • Subject: Re: HFS or HFS+? That is the statfs question
  • From: Don Brady <email@hidden>
  • Date: Fri, 26 May 2006 22:43:52 -0600

You could use pathconf(2) and the _PC_NAME_MAX selector:
	standard HFS returns 31
	HFS Plus returns 255

Alternatively you could use getattrlist(2) and ask for the ATTR_VOL_SIGNATURE attribute:
standard HFS returns 0x4244 ('BD')
HFS Plus returns 0x482B ('H+')


-Don


On May 26, 2006, at 2:38 PM, Stephane Sudre wrote:

With the statfs API you can know the kind of File System a file (or path) lives on.

The problem is that this API returns "hfs" for an HFS+ (journalized should I add) volume.

Is there a quick way to know this is actually a HFS+ File System (typical block size?).

_______________________________________________
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

_______________________________________________ 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
References: 
 >HFS or HFS+? That is the statfs question (From: Stephane Sudre <email@hidden>)

  • Prev by Date: hfs+ encryption
  • Next by Date: Re: HFS or HFS+? That is the statfs question
  • Previous by thread: HFS or HFS+? That is the statfs question
  • Next by thread: Re: HFS or HFS+? That is the statfs question
  • Index(es):
    • Date
    • Thread