]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: writes should update the file size, even when data_cache_mode=0
authorasomers <asomers@FreeBSD.org>
Tue, 25 Jun 2019 18:36:11 +0000 (18:36 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 25 Jun 2019 18:36:11 +0000 (18:36 +0000)
commit89efdc35916e0b469f81e48396e7d260121c63fa
treea68b74c2e7227ba721aec21134a2e755073430f1
parent5c38f956316b6bac3b6839d459af7db23f6002ec
fusefs: writes should update the file size, even when data_cache_mode=0

Writes that extend a file should update the file's size.  r344185 restricted
that behavior for fusefs to only happen when the data cache was enabled.
That probably made sense at the time because the attribute cache wasn't
fully baked yet.  Now that it is, we should always update the cached file
size during write.

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