4 ms·
Thanks, I was wondering about ext4 and time stamps. I wonder what the zfs/btrfs type file systems do. I am a bit lazy to check but I expect btrfs is using 64
by jmclnx 1y ago
Thanks, I was wondering about ext4 and time stamps.
I wonder what the zfs/btrfs type file systems do. I am a bit lazy to check but I expect btrfs is using 64 bit. zfs, I would not be surprised if it matches zfs (edit meant ext4 here).
- XorNot 1y agoA quick glance at ZFS shows it uses a uint64_t time field in nanoseconds in some places. So 580 years or so till problems (but probably patchable ones? I believe the on disk format is already 2x uint64s, this is just the gethrtime() function I saw).
- RedShift1 1y agoWhat is the use of such high precision file timestamps?
- zokier 1y agonanoseconds is just common sub-second unit that is used. notably it is used internally in linux kernel and exposed via clock_gettime (and related functions) via timespec struct https://man7.org/linux/man-pages/man3/timespec.3type.html https://man7.org/linux/man-pages/man3/timespec.3type.html it is convenient unit because 10^9 fits neatly into 32 bit integer, and it is unlikely that anyone would need more precision than that for any general purpose use.