From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Tavis Barr <tb62@columbia.edu>
Cc: nfs@lists.sourceforge.net
Subject: Re: [Fwd: Re: NFS-HOWTO]
Date: 19 Mar 2002 19:47:34 +0100 [thread overview]
Message-ID: <shsn0x4mm2h.fsf@charged.uio.no> (raw)
In-Reply-To: <1016561902.2031.23.camel@vaio>
>>>>> " " == Tavis Barr <tb62@columbia.edu> writes:
> Andrew Ryan had a good question for me below that I don't know
> the answer to. When a file gets modified and left the same
> size twice within one second, its mtime stays the same and all
> other attributes stay the same, so the NFS server does not see
> that it has been altered. At least this is my understanding of
> the bug. Some things that I don't know because I'm not
> familiar enough with the NFS internals:
> *What data structure reflects that the file has been altered?
inode->i_size + inode->i_mtime ;-)
NFSv4 has support for a new 64-bit opaque value that can be used to
tell if the file has changed (that doesn't have to be i_mtime).
For NFSv2/v3 though, file size and mtime are all we have available to
tell whether or not the file has changed.
> Is it the inode number, or some field within the inode? *This
> was supposedly a 2.5 fix item; the issue is that mtime does not
> have a granularity finer than one second. What subsystem does
> the fix go into? The VFS layer? Has there been any work done
> on it?
Neil was talking about fixing this in 2.5.x (it is after all a server
issue). The problem is that several filesystems (i.e. most notably
ext2/ext3) don't have the space in their on-disk inodes for <1s time
resolution.
There are some ideas floating around on how to get around this, but I
do not believe that concensus has yet been achieved...
Cheers,
Trond
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2002-03-19 18:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-19 18:18 [Fwd: Re: NFS-HOWTO] Tavis Barr
2002-03-19 18:47 ` Trond Myklebust [this message]
2002-03-19 19:20 ` Trond Myklebust
2002-03-19 23:06 ` Ragnar Kjørstad
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=shsn0x4mm2h.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=nfs@lists.sourceforge.net \
--cc=tb62@columbia.edu \
/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