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?
On 2011-05-10 08:56, niujin wrote:
> 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