On Thu 2017-10-05 10:56:46 +0100, Chris Lamb wrote: > I'd also be curious to know why you think *more* than one second could > ever be needed here. I think I'm mising something.
some filesystems have a resolution > 1s :( http://www.ntfs.com/exfat-comparison.htm shows that FAT32 has a 2s granularity when used without extensions. Looks like the Linux kernel remembers a 1sec granularity while still mounted, but shows just the 2sec granularity across remounts: mkfs -t vfat $blkdev mount $blkdev /mnt for a in 1 2 3; do touch /mnt/$a sleep 1 done stat /mnt/* | grep Modify umount /mnt mount $blkdev /mnt stat /mnt/* | grep Modify umount /mnt produces two batches of mtime stats: Modify: 2017-10-05 12:56:14.000000000 -0700 Modify: 2017-10-05 12:56:15.000000000 -0700 Modify: 2017-10-05 12:56:16.000000000 -0700 Modify: 2017-10-05 12:56:14.000000000 -0700 Modify: 2017-10-05 12:56:14.000000000 -0700 Modify: 2017-10-05 12:56:16.000000000 -0700 --dkg