3 #include <minix/vfsif.h>
6 /*===========================================================================*
8 *===========================================================================*/
11 register struct inode
*rip
;
14 /* Temporarily open the file. */
15 if( (rip
= get_inode(fs_dev
, (ino_t
) fs_m_in
.REQ_INODE_NR
)) == NULL
)
18 /* Only the owner of a file or the super_user can change its time. */
20 if(read_only(rip
) != OK
) r
= EROFS
; /* not even su can touch if R/O */
22 rip
->i_atime
= fs_m_in
.REQ_ACTIME
;
23 rip
->i_mtime
= fs_m_in
.REQ_MODTIME
;
24 rip
->i_update
= CTIME
; /* discard any stale ATIME and MTIME flags */