FreeBSD Bugzilla – Attachment 239937 Details for
Bug 269328
nfs client: data corruption using fspacectl and mmap
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
do a VOP_FSYNC() after vop_stddeallocate() to push writes of 0s
asomers.patch (text/plain), 472 bytes, created by
Rick Macklem
on 2023-02-06 01:43:26 UTC
(
hide
)
Description:
do a VOP_FSYNC() after vop_stddeallocate() to push writes of 0s
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2023-02-06 01:43:26 UTC
Size:
472 bytes
patch
obsolete
>--- sys/fs/nfsclient/nfs_clvnops.c.asomers 2023-02-05 13:25:36.148355000 -0800 >+++ sys/fs/nfsclient/nfs_clvnops.c 2023-02-05 17:06:22.666054000 -0800 >@@ -3865,6 +3865,8 @@ nfs_deallocate(struct vop_deallocate_args *ap) > */ > if (error != 0 && error != NFSERR_FBIG && error != NFSERR_INVAL) { > error = vop_stddeallocate(ap); >+ if (error == 0) >+ error = VOP_FSYNC(vp, MNT_WAIT, td); > NFSCL_DEBUG(4, "dealloc: stddeallocate=%d\n", error); > } > if (attrflag != 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 269328
:
239910
|
239937
|
239981