From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: jlnance@unity.ncsu.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: NFS file consistency
Date: 17 Mar 2003 16:00:25 +0100 [thread overview]
Message-ID: <shswuiyqbqu.fsf@charged.uio.no> (raw)
In-Reply-To: <20030317145054.GA7030@ncsu.edu>
>>>>> " " == jlnance <jlnance@unity.ncsu.edu> writes:
> Hello All,
> I am trying to track down some file consistency problems I
> am seeing
> and I want to make sure my assumptions about NFS are correct.
> Say I have 2 NFS clients, machine A and machine B. Machine
> A does
> an open/write/close on a file. After this machine B does an
> open/read on the file. Is machine B guaranteed to read the
> same data that A wrote or is there a delay between the time A
> closes the file and the time B can expect to see valid data?
No delay should be necessary. Machine B should see the data that A
wrote.
> Also if the file already existed before A wrote it, and B had
> already read from it and closed it, does this affect anything?
Nope.
However the Linux 2.4.x NFS server has a known bug/feature that may
affect things: because the mtime only has a 1 second resolution,
changes that occur within < 1 second of one another may not cause
mtime to be updated. When this occurs, the NFS client has no way to
tell that the file has changed.
This limitation no longer exists in Linux 2.5.x...
Cheers,
Trond
prev parent reply other threads:[~2003-03-17 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 14:50 NFS file consistency jlnance
2003-03-17 15:00 ` Trond Myklebust [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=shswuiyqbqu.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=jlnance@unity.ncsu.edu \
--cc=linux-kernel@vger.kernel.org \
/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