summaryrefslogtreecommitdiff
path: root/sys/miscfs/fuse/fuse_device.c
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-08-30 16:45:55 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-08-30 16:45:55 +0000
commitd93491f093d0cc48fce8977fc9cb8c78b55cd504 (patch)
tree2894bd1ed9d04b5a166887e07a9758deb83c2a80 /sys/miscfs/fuse/fuse_device.c
parent922d3462e51dceb6d99358cac9f71f81ddcfcdeb (diff)
Use struct stat for storing attributes in fusebufs, because using struct
vattr in userspace is suboptimal as some related helpers are not available, e.g. VATTR_NULL() and IFTOVT(). The conversion is now done in the kernel where it belongs. As a side effect the <sys/vnode.h> include can be removed from libfuse. tweaks and ok guenther
Diffstat (limited to 'sys/miscfs/fuse/fuse_device.c')
-rw-r--r--sys/miscfs/fuse/fuse_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/miscfs/fuse/fuse_device.c b/sys/miscfs/fuse/fuse_device.c
index 520736a6a0e..0bdd0b27d60 100644
--- a/sys/miscfs/fuse/fuse_device.c
+++ b/sys/miscfs/fuse/fuse_device.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_device.c,v 1.20 2016/01/22 17:09:43 stefan Exp $ */
+/* $OpenBSD: fuse_device.c,v 1.21 2016/08/30 16:45:54 natano Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -22,6 +22,7 @@
#include <sys/malloc.h>
#include <sys/mount.h>
#include <sys/poll.h>
+#include <sys/stat.h>
#include <sys/statvfs.h>
#include <sys/vnode.h>
#include <sys/fusebuf.h>