Distributed Files Ys
Distributed Files Ys
6.1 Files
6.2 Directories
6.3 File system implementation
6.4 Example file systems
1
Long-term Information Storage
2
File Naming
4
File Types
6
File Attributes
1. Create 7. Append
2. Delete 8. Seek
3. Open 9. Get attributes
4. Close 10.Set Attributes
5. Read 11.Rename
6. Write
8
Directories
Single-Level Directory Systems
9
Two-level Directory Systems
10
Hierarchical Directory Systems
11
Path Names
1. Create 5. Readdir
2. Delete 6. Rename
3. Opendir 7. Link
4. Closedir 8. Unlink
13
File System Implementation
14
Implementing Files (1)
16
Implementing Files (3)
An example i-node
18
Implementing Directories (1)
Block size
23
Disk Space Management (2)
29
File System Performance (1)
30
File System Performance (2)
31
Log-Structured File Systems
• With CPUs faster, memory larger
– disk caches can also be larger
– increasing number of read requests can come from cache
– thus, most disk accesses will be writes
32
Example File Systems
CD-ROM File Systems
33
The CP/M File System (1)
35
The MS-DOS File System (1)
36
The MS-DOS File System (2)
Bytes
38
The Windows 98 File System (2)
Bytes
Checksum
39
The Windows 98 File System (3)
40
The UNIX V7 File System (1)
41
The UNIX V7 File System (2)
A UNIX i-node
42
The UNIX V7 File System (3)