• 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: curious: if not file references, what?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: curious: if not file references, what?


  • Subject: Re: curious: if not file references, what?
  • From: Charles Srstka <email@hidden>
  • Date: Fri, 20 Jan 2017 22:49:47 -0600

> On Jan 20, 2017, at 10:24 PM, Quincey Morris <email@hidden> wrote:
>
> It’s an interesting question whether file-references use inode numbers. Some file systems don’t have them, so (I assume) they’re invented when such a file system is mounted, but they’re not necessarily assigned permanently across mounts. (I believe Apple documentation says not rely on the file number returned by NSURL metadata methods being stable across mounts.) Even when they’re baked into the file system, it’s not obvious what the semantics are when a volume is copied, or a volume is restored from backup. Perhaps someone else on this list is better informed on the subject than I am.

Actually, this is a common misconception; file references do *not* use inode numbers; they refer to CNIDs, which are a separate number stored in the catalog file. Inodes refer to raw file data on the disk; CNIDs point instead to a particular catalog node. You can have two or more hard links that all point to a specific file, but they’ll all have separate CNIDs, and if you delete one of them, you’ll break any file references pointing to that particular node.

Note that this is all HFS(+)-specific. APFS may be implemented differently, although in my limited testing, it appears to behave the same.

Charles

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >On NSIncrementalStore UUID Uniqueness (From: Daryle Walker <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Jean-Daniel <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Jens Alfke <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Keary Suska <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Daryle Walker <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Charles Srstka <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Quincey Morris <email@hidden>)
 >Re: On NSIncrementalStore UUID Uniqueness (From: Charles Srstka <email@hidden>)
 >curious: if not file references, what? (From: David Young <email@hidden>)
 >Re: curious: if not file references, what? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: curious: if not file references, what?
  • Next by Date: Re: Merging scrolling/clipping with NSStackView
  • Previous by thread: Re: curious: if not file references, what?
  • Next by thread: Re: On NSIncrementalStore UUID Uniqueness
  • Index(es):
    • Date
    • Thread