]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: set ctime during FUSE_SETATTR following a write
authorasomers <asomers@FreeBSD.org>
Wed, 26 Jun 2019 00:03:37 +0000 (00:03 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 26 Jun 2019 00:03:37 +0000 (00:03 +0000)
commitf0b86a150f26161911b7311f9d3b9a5eeae25a93
tree5006206bc8dc745c71699b62ea3ecfdb90618dd2
parent9530cadcceeeb19517d9c56f4182824c71537ea8
fusefs: set ctime during FUSE_SETATTR following a write

As of r349396 the kernel will internally update the mtime and ctime of files
on write.  It will also flush the mtime should a SETATTR happen before the
data cache gets flushed.  Now it will flush the ctime too, if the server is
using protocol 7.23 or higher.

This is the only case in which the kernel will explicitly set a file's
ctime, since neither utimensat(2) nor any other user interfaces allow it.

Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_internal.c
tests/sys/fs/fusefs/write.cc