Hệ thống quản lý tập tin phần 1 - Pdf 62

CẤU TRÚC ĐĨA CỨNG

Hệ điều hành xem đóa cứng như một chuỗi các
-3-
ägä
block liên tiếp với kích thước cố đònh.
CẤU TRÚC
HỆ THỐNG FILEHỆ THONG FILE

Tổ chức theo phân lớp

File Control Block (FCB)

File Control Block (FCB)

Nằm trên đóa cứng, chứa

Thông tin bảo mật file

Thông tin nơi lưu trữ file

Virual File System (VFS)
Cngcấp API ch ng tr

Cung cap API chung truy
xuất nhiều loại hệ thống file
khác nhau
á

Cấu trúc thư mục


management
access
method
in main memory
Buffer
in secondary
storage
di k
user&
program
Operation
File
blocking
disk
scheduling
commands
Operation,
file name
File
maniputation
functions
I/O
Free storage
management
User Access
Control
File
association
11.7
File Management Concerns

– Không cấu trúc – một chuỗi word/byte
– Cấu trúc record đơn giản
Fi ed length s ariable length Fixed length vs. variable length
– Cấu trúc phức tạp
 Formatted document (Word, PDF document,...)
 Relocatable load file (executable dynamic linking library )Relocatable load file (executable, dynamic linking library,...)
11.11
Khái niệm cơ sở (tt)

Truy cập file (từ user-view)

Sequential
 truy xuất dữ liệu theo thứ tự, từng byte hoặc record

Keyed (hoặc indexed)
 đònh vò một block dựa vào key value hoặc chỉ mục (vd hash,
dictionary)
Memory mapping file

Memory mapping file
 file được ánh xạ vào không gian đòa chỉ
 dùng tác vụ truy xuất bộ nhớ  hệ điều hành sẽ thực hiện các
tác vụ tương ứngïgg

Truy cập file (từ operating system view)

Sequential
 có con trỏ file trỏ đến vò trí đọc/ghi kế tiếp
 sau một tác vụ đọc/ghi phải cập nhật vò trí con trỏ file mới


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status