Skip to contentSkip to conversation

nfs's interface and unix fs system call

DISCUSSION niujin 2 participants 2 messages May 9, 2011

Subsystems (2)
lore
Share & tools
lore

niujin

author
#0 lore raw

Hi everyone, I'm new to nfs and I read a line of words refering to NFS in <Distributed Systems --- Concepts and Design>:
"User programs can access files via Unix system calls without recompilication or reloading"

My question is, as far as I know, unix system call include "open" operation while NFS server operation does not, it seems to be contradictary to the quotings above, why?

#1 lore raw
Quoted 8 lines · niujin

Hi everyone, I'm new to nfs and I read a line of words refering to NFS in <Distributed Systems --- Concepts and Design>:
"User programs can access files via Unix system calls without recompilication or reloading"

My question is, as far as I know, unix system call include "open" operation while NFS server operation does not, it seems to be contradictary to the quotings above, why?

The NFS version 2 and 3 protocols are stateless and are not intended to export all Unix/Posix system calls therefore they include no OPEN operation.

The client uses LOOKUP to get a file handle which is used by other operations to identify the file at hand somewhat similar to the way an open file descriptor is used by Posix system calls (just without any state associated with it)

Benny