Remote File System
Remote file system 讓 client machine 透過 network 存取 server 上的 files / directories,最好看起來像 local namespace 的一部分。
三種 sharing 層級
- Manual transfer:ftp / scp / download-upload。簡單,但 application 不能直接用 local path 操作 remote file;同步與版本衝突靠人或工具處理。
- Distributed file system(DFS):client 把 remote directory mount 到 local tree,之後用普通 system calls 存取;NFS 是代表例。
- Cloud / web sharing:常透過 sync client、web UI、API 或 FUSE-like layer;跨 device 方便,但 consistency、latency、offline conflicts、provider dependency 更複雜。
DFS 必須處理
Server export policy、client mount、authentication、UID/GID mapping、permission checks、network / server failure、data / attribute caching、sharing semantics。
DFS 通常接在 D-OS-Ch15e-Virtual_File_System 下:VFS 發現 vnode 是 remote,就呼叫 remote file-system protocol。
Remote FS 讓 sharing 看起來像 local file access,但必須額外處理 network latency、server crash、authentication 與 cache consistency。