作業系統›Ch10 檔案管理
第 24 題/共 28 題
◀ OS 24/28
24. File System、Crash Consistency
#OS-10-024中File SystemCrash Consistency

(2%) You are implementing a very simple file system without journaling. Creating a new file involves allocating one data block, writing the data, initializing the inode, and adding a directory entry that points to that inode. Writes can be reordered by caches unless explicitly flushed. Which sequence best preserves crash consistency, meaning that after a crash you will not end up with a directory entry that references an uninitialized inode or an inode that references garbage data (you may still allow space leaks)?

📄 成大115
跳轉到第題
▤完整推導請見《WH 資工筆記 · 作業系統》Ch10 檔案管理
本章題號 · 21–28 / 28