Remote File-System Client-Server Model
Remote FS 把持有 files 的 machine 視為 server,把要存取 remote files 的 machine 視為 client。Server export directories;client mount exported resource;file operations 透過 network protocol 執行。一台 machine 可同時是 client 和 server。
Export / mount
Server 通常設定:哪些 directories / volumes 可 export、哪些 clients 可 mount、read-only / read-write options、user mapping / security policy。Client 指定 server 與 remote directory;若通過 export policy,server 回傳 initial handle 或 mount result,client 把它接到 local mount point。
Authentication
最弱做法是信任 hostname / IP / client-provided UID/GID,但這可能被 spoof,也可能因 UID mapping 不一致而誤判權限。較安全做法使用 cryptographic authentication、keys、Kerberos-like protocol。
Operation flow
Application 呼叫普通 file operation;client OS 轉成 DFS protocol messages(lookup、read、write、get attributes);server 以 request identity 做 permission check,對本機 file system 執行,再回傳結果。
Server 會成為共享 bottleneck / failure point,因此 remote FS 需要 caching、replication 或 recovery policy。