Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libperfuse Removed unimplemented mmap and seek method. s...



details:   https://anonhg.NetBSD.org/src/rev/b118d4419d40
branches:  trunk
changeset: 331616:b118d4419d40
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Aug 16 16:31:15 2014 +0000

description:
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.

diffstat:

 lib/libperfuse/ops.c          |  21 +--------------------
 lib/libperfuse/perfuse.c      |   6 +-----
 lib/libperfuse/perfuse_priv.h |   6 +-----
 3 files changed, 3 insertions(+), 30 deletions(-)

diffs (85 lines):

diff -r 2b199cf0d6fe -r b118d4419d40 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Sat Aug 16 16:28:43 2014 +0000
+++ b/lib/libperfuse/ops.c      Sat Aug 16 16:31:15 2014 +0000
@@ -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 @@
        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 @@
        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 -r 2b199cf0d6fe -r b118d4419d40 lib/libperfuse/perfuse.c
--- a/lib/libperfuse/perfuse.c  Sat Aug 16 16:28:43 2014 +0000
+++ b/lib/libperfuse/perfuse.c  Sat Aug 16 16:31:15 2014 +0000
@@ -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 @@
        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 -r 2b199cf0d6fe -r b118d4419d40 lib/libperfuse/perfuse_priv.h
--- a/lib/libperfuse/perfuse_priv.h     Sat Aug 16 16:28:43 2014 +0000
+++ b/lib/libperfuse/perfuse_priv.h     Sat Aug 16 16:31:15 2014 +0000
@@ -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_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 *,



Home | Main Index | Thread Index | Old Index