1 /* Created (MFS based):
2 * February 2010 (Evgeniy Ivanov)
6 #include <minix/callnr.h>
8 #include <minix/vfsif.h>
11 #include "puffs_priv.h"
14 /*===========================================================================*
16 *===========================================================================*/
19 struct puffs_node
*pn
;
21 PUFFS_MAKECRED(pcr
, &global_kcred
);
26 if (global_pu
->pu_ops
.puffs_node_setattr
== NULL
)
29 if( (pn
= puffs_pn_nodewalk(global_pu
, 0, &fs_m_in
.m_vfs_fs_utime
.inode
)) == NULL
)
32 puffs_vattr_null(&va
);
33 va
.va_atime
.tv_sec
= fs_m_in
.m_vfs_fs_utime
.actime
;
34 va
.va_atime
.tv_nsec
= fs_m_in
.m_vfs_fs_utime
.acnsec
;
35 va
.va_mtime
.tv_sec
= fs_m_in
.m_vfs_fs_utime
.modtime
;
36 va
.va_mtime
.tv_nsec
= fs_m_in
.m_vfs_fs_utime
.modnsec
;
37 va
.va_ctime
= clock_timespec();
39 if (global_pu
->pu_ops
.puffs_node_setattr(global_pu
, pn
, &va
, pcr
) != 0)