Chapter04 FileSystems
Chapter04 FileSystems
Chapter 4
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
File Naming
File Structure
File Types
File Attributes
File Operations
1.
2.
3.
4.
5.
6.
Create
Delete
Open
Close
Read
Write
7. Append
8. Seek
9. Get
attributes
10. Set attributes
11. Rename
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Single-Level Directory
Systems
Hierarchical Directory
Systems
Path Names
Directory Operations
1.
2.
3.
4.
Create
Delete
Opendir
Closedir
5.
6.
7.
8.
Readdir
Rename
Link
Unlink
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Implementing Files
Contiguous Layout
Implementing Files
Linked List Allocation
Implementing Files
Linked List Table in
Memory
Implementing
Files
I-nodes
Figure 4-13. An
example i-node.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Implementing Directories
(1)
Figure 4-14. (a) A simple directory containing fixedsize entries with the disk addresses and attributes
in the directory entry. (b) A directory in which each
entry just refers to an i-node.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Implementing Directories
(2)
Figure 4-17. (a) Situation prior to linking. (b) After the link is
created. (c) After the original owner removes the file.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Figure 4-21. The dashed curve (left-hand scale) gives the data rate of a
disk. The solid curve (right-hand scale) gives the disk space efficiency.
All files are 4 KB.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Disk Quotas
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Figure 4-25. A file system to be dumped. The squares are directories and
the circles are files. The shaded items have been modified since the last
dump. Each directory and file is labeled by its i-node number.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Figure 4-27. File system states. (a) Consistent. (b) Missing block.
(c) Duplicate block in free list. (d) Duplicate data block.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education Limited. All
rights reserved.
5. NM - Alternative
name.
6. CL - Child
location.
7. PL - Parent
location.
8. RE - Relocation.
9. TF - Time stamps.
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
Joliet Extensions
1. Long file names.
2. Unicode character set.
3. Directory nesting deeper than
eight levels.
4. Directory names with extensions
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.
End
Chapter 4
Tanenbaum & Bos, Modern Operating Systems: 4th ed., Global Edition (c) 2015 Pearson Education
Limited. All rights reserved.