Re: ext4 - getting at birth time (file create time) and getting/setting nanosecond time stamps and utime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tis 2009-10-20 klockan 16:11 -0500 skrev Steve French:

> "The function utime() allows specification of time stamps with a
> resolution of 1 second. ... The function utimes() is similar, but the
> times argument allows a reso lution of 1 microsecond for the
> timestamps. "   1 millisecond is not sufficient

But it isn't 1 millisecond, it's granulatity is 1 microsecond (1/1000
millisecond, or 1000 nanoseconds)

utime -> second (time_t), same granularity as old stat(), time() and
friends.

utimes -> microsecond (struct timeval) (1/1000000), same granularity as
gettimeofday() and friends.

utimen -> nanosecond  (struct timespec) (1/1000000000), same granularity
as current stat(), clock_gettime() and friends.

Regards
Henrik

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux