]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: Don't treat fsync the same as fdatasync
authorasomers <asomers@FreeBSD.org>
Thu, 21 Mar 2019 23:01:56 +0000 (23:01 +0000)
committerasomers <asomers@FreeBSD.org>
Thu, 21 Mar 2019 23:01:56 +0000 (23:01 +0000)
commit208d3d2ec9b19c2591af93b71b63bf75a244a826
treef1a30c31513e75cba3dcaf0bd530c61ca2414567
parent1635444b1fa228f8ab12f7f52d40b483dac49b7b
fusefs: Don't treat fsync the same as fdatasync

For an unknown reason, fusefs was _always_ sending the fdatasync operation
instead of fsync.  Now it correctly sends one or the other.

Also, remove the Fsync.fsync_metadata_only test, along with the recently
removed Fsync.nop.  They should never have been added.  The kernel shouldn't
keep track of which files have dirty data; that's the daemon's job.

PR: 236473
Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_internal.h
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/fsync.cc