Subject: Re: kern/26154: NFS server doesn't update mtime when file is modified
To: None <gnats-bugs@gnats.NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 07/03/2004 23:25:35
On Sat, Jul 03, 2004 at 11:12:43PM +0200, Manuel Bouyer wrote:
> When a file is modified from a NFS client (for example, appending
> data with echo foo >> file from shell), the mtime on the server
> isn't updated, as shown by the following test program.
> Tested from a 2.0 client; a 2.0 client with a 1.6.2 server gives
> the expected result.
> touch(1) also update the mtime as expected.
>
> #include <sys/stat.h>
>
> main()
> {
> struct stat st;
>
> while (1) {
> stat("/home/bouyer/Mail/Inbox.test", &st);
> printf("size %ld atime %ld mtime %ld\n", st.st_size, st.st_atime, st.st_mtime);
Err, I should have compiled it with -Wall :(
The printf here doesn't to what it's intended for. I closed the PR, and with
open one about the real problem.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--