CVS commit: src/external/cddl/osnet/dist/uts/common/fs/zfs

"YAMAMOTO Takashi" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	yamt
Date:		Sun Mar  1 13:54:31 UTC 2026

Modified Files:
	src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vnops.c

Log Message:
zfs: fix data loss with some combinations of mmap and write

in write(), make a mmap page clean only when we are overwriting the
whole page. otherwise, modifications made via mmap which are outside
the overwritten region will be lost.

tested with https://github.com/yamt/garbage/blob/master/c/ubc/ubctest.c


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 \
    src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.