Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Teach device node...
details: https://anonhg.NetBSD.org/src/rev/9fb4cda102a1
branches: trunk
changeset: 1007581:9fb4cda102a1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Feb 23 06:15:27 2020 +0000
description:
Teach device nodes on zfs to handle fsync by calling spec_fsync too.
diffstat:
external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r db045e03bced -r 9fb4cda102a1 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Sun Feb 23 05:50:25 2020 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c Sun Feb 23 06:15:27 2020 +0000
@@ -5509,6 +5509,19 @@
}
static int
+zfs_spec_fsync(void *v)
+{
+ struct vop_fsync_args *ap = v;
+ int error;
+
+ error = spec_fsync(v);
+ if (error)
+ return error;
+
+ return (zfs_fsync(ap->a_vp, ap->a_flags, ap->a_cred, NULL));
+}
+
+static int
zfs_netbsd_getattr(void *v)
{
struct vop_getattr_args *ap = v;
@@ -6355,7 +6368,7 @@
{ &vop_poll_desc, spec_poll },
{ &vop_kqfilter_desc, spec_kqfilter },
{ &vop_revoke_desc, spec_revoke },
- { &vop_fsync_desc, zfs_netbsd_fsync },
+ { &vop_fsync_desc, zfs_spec_fsync },
{ &vop_remove_desc, spec_remove },
{ &vop_link_desc, spec_link },
{ &vop_lock_desc, zfs_netbsd_lock },
Home |
Main Index |
Thread Index |
Old Index