• Trond Myklebust's avatar
    NFSv2: In the NFSv3 RFC, the sattr3 structure passed in the SETATTR · e143b1c8
    Trond Myklebust authored
       call allows for the client to request that the mtime and/or atime
       of an inode be set to the current server time, the given (client)
       time, or not changed.  The set-to-current-server value is used
       when you run "touch file" on the client.
    
    The NFSv2 RFC defines no such encoding for the sattr structure. 
       However Solaris and Irix machine obey a convention where passing
       the invalid value mtime.useconds=1000000 means "set both mtime and
       atime to the current server time".  The convention is documented
       in the book "NFS Illustrated" by Brent Callaghan.  The patch below
       implements this convention for the Linux client and server (hence
       multiple To:s).
    Signed-off-by: default avatarGreg Banks <gnb@sgi.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@fys.uio.no>
    e143b1c8
nfs2xdr.c 17.6 KB