linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benny Halevy <bhalevy@panasas.com>
To: niujin <pippo.oxford@gmail.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: nfs's interface and unix fs system call
Date: Mon, 09 May 2011 19:54:40 +0300	[thread overview]
Message-ID: <4DC81C50.6010507@panasas.com> (raw)
In-Reply-To: <4DC8D37D.20800@gmail.com>

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

      reply	other threads:[~2011-05-09 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10  5:56 nfs's interface and unix fs system call niujin
2011-05-09 16:54 ` Benny Halevy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC81C50.6010507@panasas.com \
    --to=bhalevy@panasas.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pippo.oxford@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).