Re: [NFS] [PATCH] NFS server does not update mtime on setattr request

From: Peter Staubach
Date: Wed Jun 07 2006 - 13:45:40 EST


Trond Myklebust wrote:

On Wed, 2006-06-07 at 11:44 -0400, Peter Staubach wrote:



I am curious about how this would break truncate?



According to SuSv43, truncate should result in changes to
mtime/ctime/suid/sgid if and only if the file size changes. The
combination of disabling the client caching and always setting
mtime/ctime on the server will therefore clearly break truncate.


Okay, I see that.

Someone should probably alert the Solaris folks that they might have a bug in
their NFS clients. I suspect that they are only sending over the size element
in some of the over the wire SETATTR calls when they really should be sending
the size and mtime elements. This might head off a potential customer issue
where they blaim Linux instead of Solaris.

Thanx...

ps
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/