此筆記之網址: https://hackmd.io/@nckuoverload/ADSYSHW1
1. When executing the Microsoft Windows command XCOPY, what are the service functions needed from the file system? Please list the functions and give your reason.(20 points)
首先會從根目錄的 inode 開始讀取找到 block number。再讀取 block number 並找到下一層資料夾的 inode。重複至找到檔案為止。
在建立檔案時,寫入至 block,並且會在 parent inode table 註冊該 block 。
微軟在複製上面主要提供了三種指令,分別是 COPY, XCOPY, ROBOCOPY
題目中的 XCOPY 指令和 COPY 指令相似,功能也和 Linux 上的 cp 相似,所以可以使用 strace cp a b 來探討。