]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime().
authorpfg <pfg@FreeBSD.org>
Sun, 6 May 2018 21:29:29 +0000 (21:29 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 6 May 2018 21:29:29 +0000 (21:29 +0000)
commit68807f21657b87276bee1a8b8e9ddbf03ef26525
treec59a6c422446c7b2ac3110665530d40757aa3eda
parent795ae36c8fde7b52bed823b644227575333a94c7
msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime().

Most filesystems, with the notable exceptions of msdosfs and autofs use
only vfs_timestamp() to read the current time. This has the benefit of
configurable granularity (using the vfs.timestamp_precision sysctl).

For convenience, use it on msdosfs too.

Submitted by: Damjan Jovanovic
Differential Revision: https://reviews.freebsd.org/D15297
sys/fs/msdosfs/msdosfs_denode.c
sys/fs/msdosfs/msdosfs_vnops.c