From beafd5bc7ca7e096041a70133cfc00126ee675d6 Mon Sep 17 00:00:00 2001 From: manu Date: Sat, 16 Aug 2014 16:31:15 +0000 Subject: [PATCH] Removed unimplemented mmap and seek method. seek's declaration caused seek request to be passed backand forth between kernel and userland while we did nothing about them. --- lib/libperfuse/ops.c | 21 +-------------------- lib/libperfuse/perfuse.c | 6 +----- lib/libperfuse/perfuse_priv.h | 6 +----- 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/lib/libperfuse/ops.c b/lib/libperfuse/ops.c index 794ef8bca704..66e9d38c67b6 100644 --- a/lib/libperfuse/ops.c +++ b/lib/libperfuse/ops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.67 2014/08/16 16:28:43 manu Exp $ */ +/* $NetBSD: ops.c,v 1.68 2014/08/16 16:31:15 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -1960,17 +1960,6 @@ out: return error; } -/* ARGSUSED0 */ -int -perfuse_node_mmap(struct puffs_usermount *pu, puffs_cookie_t opc, int flags, - const struct puffs_cred *pcr) -{ - /* - * Not implemented anymore in libfuse - */ - return ENOSYS; -} - /* ARGSUSED2 */ int perfuse_node_fsync(struct puffs_usermount *pu, puffs_cookie_t opc, @@ -2085,14 +2074,6 @@ out: return error; } -/* ARGSUSED0 */ -int -perfuse_node_seek(struct puffs_usermount *pu, puffs_cookie_t opc, - off_t oldoff, off_t newoff, const struct puffs_cred *pcr) -{ - return 0; -} - int perfuse_node_remove(struct puffs_usermount *pu, puffs_cookie_t opc, puffs_cookie_t targ, const struct puffs_cn *pcn) diff --git a/lib/libperfuse/perfuse.c b/lib/libperfuse/perfuse.c index a8c71a7848f7..02278c0c6012 100644 --- a/lib/libperfuse/perfuse.c +++ b/lib/libperfuse/perfuse.c @@ -1,4 +1,4 @@ -/* $NetBSD: perfuse.c,v 1.32 2014/08/16 16:28:43 manu Exp $ */ +/* $NetBSD: perfuse.c,v 1.33 2014/08/16 16:31:15 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -471,11 +471,7 @@ perfuse_init(struct perfuse_callbacks *pc, struct perfuse_mount_info *pmi) PUFFSOP_SET(pops, perfuse, node, getattr); PUFFSOP_SET(pops, perfuse, node, setattr); PUFFSOP_SET(pops, perfuse, node, poll); -#if 0 - PUFFSOP_SET(pops, perfuse, node, mmap); -#endif PUFFSOP_SET(pops, perfuse, node, fsync); - PUFFSOP_SET(pops, perfuse, node, seek); PUFFSOP_SET(pops, perfuse, node, remove); PUFFSOP_SET(pops, perfuse, node, link); PUFFSOP_SET(pops, perfuse, node, rename); diff --git a/lib/libperfuse/perfuse_priv.h b/lib/libperfuse/perfuse_priv.h index e625111d27aa..d1ed9bba74a1 100644 --- a/lib/libperfuse/perfuse_priv.h +++ b/lib/libperfuse/perfuse_priv.h @@ -1,4 +1,4 @@ -/* $NetBSD: perfuse_priv.h,v 1.33 2014/08/16 16:28:43 manu Exp $ */ +/* $NetBSD: perfuse_priv.h,v 1.34 2014/08/16 16:31:15 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -223,12 +223,8 @@ int perfuse_node_getattr(struct puffs_usermount *, int perfuse_node_setattr(struct puffs_usermount *, puffs_cookie_t, const struct vattr *, const struct puffs_cred *); int perfuse_node_poll(struct puffs_usermount *, puffs_cookie_t, int *); -int perfuse_node_mmap(struct puffs_usermount *, - puffs_cookie_t, vm_prot_t, const struct puffs_cred *); int perfuse_node_fsync(struct puffs_usermount *, puffs_cookie_t, const struct puffs_cred *, int, off_t, off_t); -int perfuse_node_seek(struct puffs_usermount *, - puffs_cookie_t, off_t, off_t, const struct puffs_cred *); int perfuse_node_remove(struct puffs_usermount *, puffs_cookie_t, puffs_cookie_t, const struct puffs_cn *); int perfuse_node_link(struct puffs_usermount *,