Also apply sub-second UTIME to libpuffs
This commit is contained in:
parent
4069cef7f9
commit
c979136e4e
1 changed files with 2 additions and 1 deletions
|
@ -30,9 +30,10 @@ int fs_utime()
|
||||||
return(EINVAL);
|
return(EINVAL);
|
||||||
|
|
||||||
puffs_vattr_null(&va);
|
puffs_vattr_null(&va);
|
||||||
va.va_atime.tv_nsec = va.va_mtime.tv_nsec = 0;
|
|
||||||
va.va_atime.tv_sec = fs_m_in.REQ_ACTIME;
|
va.va_atime.tv_sec = fs_m_in.REQ_ACTIME;
|
||||||
|
va.va_atime.tv_nsec = fs_m_in.REQ_ACNSEC;
|
||||||
va.va_mtime.tv_sec = fs_m_in.REQ_MODTIME;
|
va.va_mtime.tv_sec = fs_m_in.REQ_MODTIME;
|
||||||
|
va.va_mtime.tv_nsec = fs_m_in.REQ_MODNSEC;
|
||||||
va.va_ctime = clock_timespec();
|
va.va_ctime = clock_timespec();
|
||||||
|
|
||||||
if (global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr) != 0)
|
if (global_pu->pu_ops.puffs_node_setattr(global_pu, pn, &va, pcr) != 0)
|
||||||
|
|
Loading…
Reference in a new issue