1. Describe the role of the logical file system module
logical file system 管理meta data的資訊。meta data包括所有檔案系統結構,但不包含真正的資料。logical file system 管理目錄結構,以提供檔案組織模組對符號式檔案名稱需要的一些資訊。他經由檔案控制區段(file-control blocks)維護檔案。
2. When a boot control block may be empty?
It could be empty if the disk does not contain an operating system
3. What kind of in-memory information are used for file-system management?
We may enumerate several structures, as: (i) an in-memory mount table, (ii) an in-memory directory structure cache, (iii) the system-wide open-file table, (iv) the per-process open-file table, (v) buffers hold file-system blocks.
(i)記憶體中的掛載表格
(ii)記憶體中的目錄結構快取
(iii)全系統的開啟檔案表格
(iv)每個行程的開啟檔案表格
(v)持有檔案系統區塊的緩衝區
4. What happens when a process closes the file?
當process關閉file,每個行程表格的紀錄將被刪除,而全系統條目的開啟個數被減1。當開啟此檔案的所有使用者都