NFS Mount Protocol
NFS mount protocol 處理 client 是否能 mount server 的 exported directory,以及後續 NFS operations 要用哪個 initial file handle。它不負責讀寫 file contents。
Mount request
Client 指定 server name / address、remote directory、local mount point、options(如 read-only)、可能的 credentials。Server 的 mount service 查 export policy 後決定是否允許。
Export list
Export list 記錄哪些 local directories / file systems 可被 remote clients mount、哪些 clients 有權、access rights 為何。課本以 Solaris /etc/dfs/dfstab 為例;大型環境可搭配 distributed naming service。
File handle
若 request 合法,server 回傳 file handle,後續 NFS RPC 用它定位 remote directory / file。UNIX terms 下,handle 可包含 file-system identifier、inode number 等定位資訊。
State caveat
Mount service 可能保存「哪些 clients mount 了哪些 directories」作為 administrative hint,例如 shutdown notification。對 NFS v3 read/write correctness 來說,這不是必要 state;這點與 D-OS-Ch15hba-Stateless_NFS_Server 相容。
Mount protocol 把 authorization / initial handle acquisition 從 file operations 分離;若 authentication 太弱,export policy 仍可能被 spoofed clients 繞過。