-/* $OpenBSD: fuse_vfsops.c,v 1.24 2016/08/12 20:18:44 natano Exp $ */
+/* $OpenBSD: fuse_vfsops.c,v 1.25 2016/08/13 11:42:46 natano Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
struct vnode *nvp;
int error;
- if ((error = VFS_VGET(mp, (ino_t)FUSE_ROOTINO, &nvp)) != 0)
+ if ((error = VFS_VGET(mp, FUSE_ROOTINO, &nvp)) != 0)
return (error);
nvp->v_type = VDIR;
copy_statfs_info(sbp, mp);
if (fmp->sess_init) {
- fbuf = fb_setup(0, FUSE_ROOT_ID, FBT_STATFS, p);
+ fbuf = fb_setup(0, FUSE_ROOTINO, FBT_STATFS, p);
error = fb_queue(fmp->dev, fbuf);
-/* $OpenBSD: fusebuf.h,v 1.9 2014/01/16 09:31:44 syl Exp $ */
+/* $OpenBSD: fusebuf.h,v 1.10 2016/08/13 11:42:46 natano Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon
* Copyright (c) 2013 Martin Pieuchot
#ifdef _KERNEL
-/* The node ID of the root inode */
-#define FUSE_ROOT_ID 1
-
/* fusebuf prototypes */
struct fusebuf *fb_setup(size_t, ino_t, int, struct proc *);
int fb_queue(dev_t, struct fusebuf *);