1 /* Created (MFS based):
2 * February 2010 (Evgeniy Ivanov)
6 #include <minix/callnr.h>
9 #include <minix/vfsif.h>
12 /*===========================================================================*
14 *===========================================================================*/
17 register struct inode
*rip
;
20 /* Temporarily open the file. */
21 if( (rip
= get_inode(fs_dev
, (ino_t
) fs_m_in
.REQ_INODE_NR
)) == NULL
)
24 /* Only the owner of a file or the super_user can change its time. */
26 if(read_only(rip
) != OK
) r
= EROFS
; /* not even su can touch if R/O */
28 rip
->i_atime
= fs_m_in
.REQ_ACTIME
;
29 rip
->i_mtime
= fs_m_in
.REQ_MODTIME
;
30 rip
->i_update
= CTIME
; /* discard any stale ATIME and MTIME flags */
31 rip
->i_dirt
= IN_DIRTY
;