1 /* Created (MFS based):
2 * February 2010 (Evgeniy Ivanov)
8 /*===========================================================================*
10 *===========================================================================*/
11 int fs_utime(ino_t ino_nr
, struct timespec
*atime
, struct timespec
*mtime
)
13 struct puffs_node
*pn
;
15 PUFFS_MAKECRED(pcr
, &global_kcred
);
17 if (global_pu
->pu_ops
.puffs_node_setattr
== NULL
)
20 if( (pn
= puffs_pn_nodewalk(global_pu
, find_inode_cb
, &ino_nr
)) == NULL
)
23 puffs_vattr_null(&va
);
26 (void)clock_time(&va
.va_ctime
);
28 if (global_pu
->pu_ops
.puffs_node_setattr(global_pu
, pn
, &va
, pcr
) != 0)