Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
  1. I was wondering what differences are between inode, fork and extended file attribute?
  2. All seem to me store attributes about a file. Are there differences between the attributes they store? Are these attributes they store called metadata of the file?
  3. Are there differences between the file system types they can apply to?
  4. Are they all not considered part of the content of a file?

Thanks and regards!

share|improve this question
1  
Is this homework? –  Turbo J Jun 14 '11 at 2:29
    
@Turbo: No. Should I feel flattered that my questions look like homework? –  Tim Jun 14 '11 at 3:14

1 Answer 1

Hmm. Fun one.

Interestingly I'm primarily aware of inodes in reference to Linux OSes, where forks and extended attributes are less common. For Linux, an inode is essentially the file. Logically it is just an identifier / a holder for the access control information and the pointer to the various data, but from the operating system's perspective it is a symbol that has a one-to-one relationship to everything thought of as the file.

A fork (a Windows and Mac filesystem concept as far as I'm aware) is essentially a place to store additional file data. Think of it as a way to store additional data that doesn't show up when you use the default method for viewing the file(s) (e.g. cat / get-contents / ?)

Extended attributes are what you would traditionally think of as metadata. This is free-form but tends to be limited in scope (in contrast a fork is free-form and not limited in scope, and an inode is heavily limited in scope and form). You might use extended attributes to list an author, copyright date, source planet, GPS coordinates, hints about whose butt that is on the coffee table, etc.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.