[lkml]   [2001]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 2.4.3-ac9/4 - NFS corruption
>>>>> " " == Raphael Manfredi <> writes:

> My NFS client runs 2.4.3-ac4 (SMP). My NFS server uses
> user-land NFS and runs 2.4.3-ac9 (UP).

> I've seens the following in my ~/mail/inbox, NFS mounted:

> ^@^@^@^@^@^ Tue May 1 14:47:02
> 2001

> On the server, the same line reads:

> From Tue May 1 14:47:02 2001

> The above "^@" are NULL bytes, as displayed by "vi". The data
> around those NULL bytes were perfect, i.e. there was text
> before in the mailbox that was correct.

> An "ls -l" on the file yields:

> -rw------- 1 ram users 1642491 May 1 00:00 inbox

> (on the server, and via NFS), which is *abnormal*, since it's
> 15:18 and I've just updated the file. Therfore, the timestamp
> is corrupted as well in the inode.

In that case you have some other task that has done a 'touch' or
something to the file. An NFS client does not explicitly set the
timestamp when doing ordinary reading/writing to a file - it leaves it
to the server to do so.

> If I create a file, via "> ~/mail/test" on NFS, it reads:

> -rw-r--r-- 1 ram users 0 May 1 15:19 test

> with a proper timestamp.

> The NFS access is done via a symlink to an NFS-mounted dir,
> i.e. ~/mail is actually a symlink to /nfs/lyon/home/ram/mail.

> Any hint as to what is happening? Is that a known problem?

Would you happen to be delivering mail to the same file on the server
or something like that?
If so it's completely normal behaviour: the userland NFS doesn't
support file locking, so there's no way that the client can guarantee
that some task on the server won't write to the file behind its

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.030 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site