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.
This commit is contained in:
parent
781f78b809
commit
beafd5bc7c
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 *,
|
||||
|
|
Loading…
Reference in New Issue