- (see Fig. 6.16 Left)
- A simple directory containing fixed-sized entries with the disk addresses and attributes in directory entry; DOS/Windows
- A directory in which each entry just refers to an inode; UNIX
- Fixed Size Directory Entries;
- Either too small; Example: DOS 8+3 characters
- Waste too much space; Example: 255 characters per file name
- Free variable length entries can create external fragmentation in directory blocks; Can compact when block is in RAM
Figure 6.16:
Left: (a) A simple directory containing fixed-sized entries
with the disk addresses and attributes in directory entry (b) A directory in which each entry just refers to an inode. Right: Two ways of handling long file names in directory (a) Inline (b) In a heap.
|
2004-05-25