Directory Representation and Hard Links

Directory Representation and Hard Links - A directory is a...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Directory Representation and Hard Links A directory is a file that contains a list of pairs (file name, I-node number) Each pair is also called a hard-link An I-node may appear in multiple directories. The reference count in the I-node keeps track of the number of directories where the I-node appears. When the reference-count reaches 0, the file is removed.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hard Links In some OSs, the reference count is incremented when the file is open. This prevents the file from being removed while it is in use. Hard Links cannot cross partitions, that is, a directory cannot list an I-node of a different
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Directory Representation and Hard Links - A directory is a...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online