summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-06-03 15:54:49 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-06-03 15:54:49 +0000
commit378984635a1cc64b5abdeaf657989badae279f5e (patch)
treed0909e4771ff59c57ec90aa418aa88b6e87c6132
parent62a9ebcc8468d105a2771647e78946f73596ac9c (diff)
changes for isc fuse support. not enabled. ok beck deraadt.
from Sylvestre Gallon ccna.syl gmail.com
-rw-r--r--sys/arch/alpha/alpha/conf.c4
-rw-r--r--sys/arch/amd64/amd64/conf.c4
-rw-r--r--sys/arch/hp300/hp300/conf.c4
-rw-r--r--sys/arch/hppa/hppa/conf.c4
-rw-r--r--sys/arch/hppa64/hppa64/conf.c4
-rw-r--r--sys/arch/i386/i386/conf.c4
-rw-r--r--sys/arch/landisk/landisk/conf.c4
-rw-r--r--sys/arch/loongson/loongson/conf.c4
-rw-r--r--sys/arch/sgi/sgi/conf.c4
-rw-r--r--sys/arch/socppc/socppc/conf.c4
-rw-r--r--sys/arch/sparc/sparc/conf.c5
-rw-r--r--sys/arch/sparc64/sparc64/conf.c6
-rw-r--r--sys/arch/vax/vax/conf.c4
-rw-r--r--sys/conf/files10
-rw-r--r--sys/kern/vfs_init.c10
-rw-r--r--sys/sys/conf.h10
-rw-r--r--sys/sys/malloc.h7
-rw-r--r--sys/sys/mount.h12
-rw-r--r--sys/sys/vnode.h6
19 files changed, 85 insertions, 25 deletions
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c
index f98728018b6..901d53c3247 100644
--- a/sys/arch/alpha/alpha/conf.c
+++ b/sys/arch/alpha/alpha/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.70 2013/03/15 09:10:52 ratchov Exp $ */
+/* $OpenBSD: conf.c,v 1.71 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.16 1996/10/18 21:26:57 cgd Exp $ */
/*-
@@ -130,6 +130,7 @@ cdev_decl(pci);
#include "hotplug.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -204,6 +205,7 @@ struct cdevsw cdevsw[] =
cdev_pppx_init(NPPPX,pppx), /* 64: pppx */
cdev_urio_init(NURIO,urio), /* 65: USB Diamond Rio 500 */
cdev_usbdev_init(NUSCANNER,uscanner), /* 66: USB scanners */
+ cdev_fuse_init(NFUSE,fuse), /* 67: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c
index 0dd539bac1a..6f40caab4ed 100644
--- a/sys/arch/amd64/amd64/conf.c
+++ b/sys/arch/amd64/amd64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.40 2013/03/15 09:10:52 ratchov Exp $ */
+/* $OpenBSD: conf.c,v 1.41 2013/06/03 15:54:47 tedu Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -179,6 +179,7 @@ cdev_decl(pci);
#include "gpio.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -286,6 +287,7 @@ struct cdevsw cdevsw[] =
cdev_vscsi_init(NVSCSI,vscsi), /* 89: vscsi */
cdev_disk_init(1,diskmap), /* 90: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 91: pppx */
+ cdev_fuse_init(NFUSE,fuse), /* 92: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/hp300/hp300/conf.c b/sys/arch/hp300/hp300/conf.c
index 0b4a3fcc8c3..70ead37cdd7 100644
--- a/sys/arch/hp300/hp300/conf.c
+++ b/sys/arch/hp300/hp300/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.54 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.55 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.39 1997/05/12 08:17:53 thorpej Exp $ */
/*-
@@ -111,6 +111,7 @@ cdev_decl(fd);
#include "vscsi.h"
#include "pppx.h"
#include "hotplug.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -171,6 +172,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 54: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 55: pppx */
cdev_hotplug_init(NHOTPLUG,hotplug), /* 56: devices hot plugging */
+ cdev_fuse_init(NFUSE,fuse), /* 57: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/hppa/hppa/conf.c b/sys/arch/hppa/hppa/conf.c
index cb87d8bd285..d7f0c519236 100644
--- a/sys/arch/hppa/hppa/conf.c
+++ b/sys/arch/hppa/hppa/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.55 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.56 2013/06/03 15:54:47 tedu Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -120,6 +120,7 @@ cdev_decl(pci);
#include "uscanner.h"
#include "bthub.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -186,6 +187,7 @@ struct cdevsw cdevsw[] =
cdev_bthub_init(NBTHUB,bthub), /* 55: bthub */
cdev_disk_init(1,diskmap), /* 56: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 57: pppx */
+ cdev_fuse_init(NFUSE,fuse), /* 58: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/hppa64/hppa64/conf.c b/sys/arch/hppa64/hppa64/conf.c
index db70537e478..86a017168b2 100644
--- a/sys/arch/hppa64/hppa64/conf.c
+++ b/sys/arch/hppa64/hppa64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.22 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.23 2013/06/03 15:54:47 tedu Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -120,6 +120,7 @@ cdev_decl(pci);
#include "uscanner.h"
#include "bthub.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -186,6 +187,7 @@ struct cdevsw cdevsw[] =
cdev_bthub_init(NBTHUB,bthub), /* 55: bthub */
cdev_disk_init(1,diskmap), /* 56: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 57: pppx */
+ cdev_fuse_init(NFUSE,fuse), /* 58: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index c8b3d77fd2e..a1a55c8d6c0 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.142 2013/03/15 09:10:52 ratchov Exp $ */
+/* $OpenBSD: conf.c,v 1.143 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -183,6 +183,7 @@ cdev_decl(pci);
#include "amdmsr.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -291,6 +292,7 @@ struct cdevsw cdevsw[] =
cdev_vscsi_init(NVSCSI,vscsi), /* 90: vscsi */
cdev_disk_init(1,diskmap), /* 91: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 92: pppx */
+ cdev_fuse_init(NFUSE,fuse), /* 93: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/landisk/landisk/conf.c b/sys/arch/landisk/landisk/conf.c
index 8b698828706..ac8ecea7c0c 100644
--- a/sys/arch/landisk/landisk/conf.c
+++ b/sys/arch/landisk/landisk/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.24 2013/03/15 09:10:52 ratchov Exp $ */
+/* $OpenBSD: conf.c,v 1.25 2013/06/03 15:54:47 tedu Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -255,6 +255,7 @@ struct bdevsw bdevsw[] = {
#include "scif.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -364,6 +365,7 @@ struct cdevsw cdevsw[] = {
cdev_bthub_init(NBTHUB,bthub), /* 100: bthub */
cdev_disk_init(1,diskmap), /* 101: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 102: pppx */
+ cdev_fuse_init(NFUSE,fuse), /* 103: fuse */
};
int nblkdev = nitems(bdevsw);
diff --git a/sys/arch/loongson/loongson/conf.c b/sys/arch/loongson/loongson/conf.c
index 31de297f743..f069653702a 100644
--- a/sys/arch/loongson/loongson/conf.c
+++ b/sys/arch/loongson/loongson/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.14 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.15 2013/06/03 15:54:47 tedu Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -130,6 +130,7 @@ cdev_decl(pci);
#include "bthub.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -210,6 +211,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 70: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 71: pppx */
cdev_usbdev_init(NUSCANNER,uscanner), /* 72: USB scanners */
+ cdev_fuse_init(NFUSE,fuse), /* 73: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/sgi/sgi/conf.c b/sys/arch/sgi/sgi/conf.c
index 85638ecfb22..3e3073da2a7 100644
--- a/sys/arch/sgi/sgi/conf.c
+++ b/sys/arch/sgi/sgi/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.31 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.32 2013/06/03 15:54:47 tedu Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -130,6 +130,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -210,6 +211,7 @@ struct cdevsw cdevsw[] =
cdev_pppx_init(NPPPX,pppx), /* 70: pppx */
cdev_notdef(), /* 71: */
cdev_usbdev_init(NUSCANNER,uscanner), /* 72: USB scanners */
+ cdev_fuse_init(NFUSE,fuse), /* 73: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/socppc/socppc/conf.c b/sys/arch/socppc/socppc/conf.c
index e41cb60825a..1f6e6be6381 100644
--- a/sys/arch/socppc/socppc/conf.c
+++ b/sys/arch/socppc/socppc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.16 2012/04/06 15:10:40 jsing Exp $ */
+/* $OpenBSD: conf.c,v 1.17 2013/06/03 15:54:47 tedu Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -119,6 +119,7 @@ cdev_decl(pci);
#include "vscsi.h"
#include "pppx.h"
#include "hotplug.h"
+#include "fuse.h"
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -212,6 +213,7 @@ struct cdevsw cdevsw[] = {
cdev_disk_init(1,diskmap), /* 82: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 83: pppx */
cdev_hotplug_init(NHOTPLUG,hotplug), /* 84: devices hot plugging */
+ cdev_fuse_init(NFUSE,fuse), /* 85: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/sparc/sparc/conf.c b/sys/arch/sparc/sparc/conf.c
index 62856506ab7..6efed5269c6 100644
--- a/sys/arch/sparc/sparc/conf.c
+++ b/sys/arch/sparc/sparc/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.61 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.62 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.40 1996/04/11 19:20:03 thorpej Exp $ */
/*
@@ -124,6 +124,7 @@ int nblkdev = nitems(bdevsw);
#include "vscsi.h"
#include "pppx.h"
#include "hotplug.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -214,7 +215,7 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSKBD, wskbd), /* 79: keyboards */
cdev_mouse_init(NWSMOUSE, wsmouse), /* 80: mice */
cdev_mouse_init(NWSMUX, wsmux), /* 81: ws multiplexer */
- cdev_notdef(), /* 82 */
+ cdev_fuse_init(NFUSE, fuse), /* 82: fuse */
cdev_notdef(), /* 83 */
cdev_notdef(), /* 84 */
cdev_notdef(), /* 85 */
diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c
index 0b1d6b57cf9..9f6e87e3be7 100644
--- a/sys/arch/sparc64/sparc64/conf.c
+++ b/sys/arch/sparc64/sparc64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.66 2012/12/08 20:38:10 kettenis Exp $ */
+/* $OpenBSD: conf.c,v 1.67 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */
/*
@@ -117,6 +117,7 @@ cdev_decl(pci);
#include "hotplug.h"
#include "vscsi.h"
#include "pppx.h"
+#include "fuse.h"
struct bdevsw bdevsw[] =
{
@@ -289,7 +290,8 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 130: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 131: pppx */
cdev_gen_init(NVLDCP,vldcp), /* 132: vldcp */
- cdev_vdsp_init(NVDSP,vdsp) /* 133: vdsp */
+ cdev_vdsp_init(NVDSP,vdsp), /* 133: vdsp */
+ cdev_fuse_init(NFUSE,fuse), /* 134: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c
index c672a3702bd..15fc7a40174 100644
--- a/sys/arch/vax/vax/conf.c
+++ b/sys/arch/vax/vax/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.68 2012/08/23 06:12:49 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.69 2013/06/03 15:54:47 tedu Exp $ */
/* $NetBSD: conf.c,v 1.44 1999/10/27 16:38:54 ragge Exp $ */
/*-
@@ -175,6 +175,7 @@ cdev_decl(dl);
#include "vscsi.h"
#include "pppx.h"
#include "audio.h"
+#include "fuse.h"
struct cdevsw cdevsw[] =
{
@@ -260,6 +261,7 @@ struct cdevsw cdevsw[] =
cdev_disk_init(1,diskmap), /* 79: disk mapper */
cdev_pppx_init(NPPPX,pppx), /* 80: pppx */
cdev_audio_init(NAUDIO,audio), /* 81: /dev/audio */
+ cdev_fuse_init(NFUSE,fuse), /* 82: fuse */
};
int nchrdev = nitems(cdevsw);
diff --git a/sys/conf/files b/sys/conf/files
index d2b9d2951cf..40f601ed96b 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.546 2013/05/29 22:23:01 tedu Exp $
+# $OpenBSD: files,v 1.547 2013/06/03 15:54:47 tedu Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -545,6 +545,14 @@ pseudo-device systrace
pseudo-device ksyms
file dev/ksyms.c ksyms needs-flag
+pseudo-device fuse
+file miscfs/fuse/fuse_device.c fuse needs-flag
+file miscfs/fuse/fuse_file.c fuse
+file miscfs/fuse/fuse_lookup.c fuse
+file miscfs/fuse/fuse_vfsops.c fuse
+file miscfs/fuse/fuse_vnops.c fuse
+file miscfs/fuse/fusebuf.c fuse
+
pseudo-device pf: ifnet
file net/pf.c pf needs-flag
file net/pf_norm.c pf
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index e010fb4d6fd..de819dfcb37 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_init.c,v 1.31 2013/03/28 03:27:46 tedu Exp $ */
+/* $OpenBSD: vfs_init.c,v 1.32 2013/06/03 15:54:48 tedu Exp $ */
/* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */
/*
@@ -86,6 +86,10 @@ extern const struct vfsops ntfs_vfsops;
extern const struct vfsops udf_vfsops;
#endif
+#ifdef FUSE
+extern const struct vfsops fusefs_vfsops;
+#endif
+
/* Set up the filesystem operations for vnodes. */
static struct vfsconf vfsconflist[] = {
#ifdef FFS
@@ -123,6 +127,10 @@ static struct vfsconf vfsconflist[] = {
#ifdef UDF
{ &udf_vfsops, MOUNT_UDF, 13, 0, MNT_LOCAL, NULL },
#endif
+
+#ifdef FUSE
+ { &fusefs_vfsops, MOUNT_FUSEFS, 18, 0, MNT_LOCAL, NULL },
+#endif
};
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 14d24e31eee..72d82dd89b6 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.121 2013/04/19 15:02:41 florian Exp $ */
+/* $OpenBSD: conf.h,v 1.122 2013/06/03 15:54:48 tedu Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
@@ -509,6 +509,13 @@ extern struct cdevsw cdevsw[];
(dev_type_stop((*))) enodev, 0, selfalse, \
(dev_type_mmap((*))) enodev }
+/* open, close, read, write, poll, ioctl */
+#define cdev_fuse_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
+ dev_init(c,n,write), dev_init(c,n,ioctl), \
+ (dev_type_stop((*))) enodev, 0, dev_init(c,n,poll), \
+ (dev_type_mmap((*))) enodev, 0, 0, dev_init(c,n,kqfilter) }
+
#endif
/*
@@ -655,6 +662,7 @@ cdev_decl(urio);
cdev_decl(hotplug);
cdev_decl(gpio);
cdev_decl(amdmsr);
+cdev_decl(fuse);
#endif
diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h
index 4811da099ce..2201fe76571 100644
--- a/sys/sys/malloc.h
+++ b/sys/sys/malloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.h,v 1.105 2013/05/03 18:26:07 tedu Exp $ */
+/* $OpenBSD: malloc.h,v 1.106 2013/06/03 15:54:48 tedu Exp $ */
/* $NetBSD: malloc.h,v 1.39 1998/07/12 19:52:01 augustss Exp $ */
/*
@@ -120,7 +120,8 @@
#define M_TTYS 62 /* allocated tty structures */
#define M_EXEC 63 /* argument lists & other mem used by exec */
#define M_MISCFSMNT 64 /* miscfs mount structures */
-/* 65-73 - free */
+#define M_FUSEFS 65 /* fusefs mount structures */
+/* 66-73 - free */
#define M_PFKEY 74 /* pfkey data */
#define M_TDB 75 /* Transforms database */
#define M_XDATA 76 /* IPsec data */
@@ -249,7 +250,7 @@
"ttys", /* 62 M_TTYS */ \
"exec", /* 63 M_EXEC */ \
"miscfs mount", /* 64 M_MISCFSMNT */ \
- NULL, \
+ "fusefs mount", /* 65 M_FUSEFS */ \
NULL, \
NULL, \
NULL, \
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index 7641f458229..47dfe136c5e 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.h,v 1.109 2013/04/15 15:32:19 jsing Exp $ */
+/* $OpenBSD: mount.h,v 1.110 2013/06/03 15:54:48 tedu Exp $ */
/* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */
/*
@@ -258,6 +258,15 @@ struct procfs_args {
#define PROCFS_ARGSVERSION 1
#define PROCFSMNT_LINUXCOMPAT 0x01
+/*
+ * Arguments to mount fusefs filesystems
+ */
+struct fusefs_args {
+ char *name;
+ char *url;
+ dev_t dev;
+ int flags;
+};
/*
* file system statistics
@@ -360,6 +369,7 @@ struct statfs53 {
#define MOUNT_NCPFS "ncpfs" /* NetWare Network File System */
#define MOUNT_NTFS "ntfs" /* NTFS */
#define MOUNT_UDF "udf" /* UDF */
+#define MOUNT_FUSEFS "fuse" /* FUSE */
/*
* Structure per mounted file system. Each mounted file system has an
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 9a3f43f5f3c..971a742aa82 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnode.h,v 1.115 2013/04/06 04:38:13 tedu Exp $ */
+/* $OpenBSD: vnode.h,v 1.116 2013/06/03 15:54:48 tedu Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
@@ -69,13 +69,13 @@ enum vtype { VNON, VREG, VDIR, VBLK, VCHR, VLNK, VSOCK, VFIFO, VBAD };
enum vtagtype {
VT_NON, VT_UFS, VT_NFS, VT_MFS, VT_MSDOSFS,
VT_PORTAL, VT_PROCFS, VT_AFS, VT_ISOFS, VT_ADOSFS,
- VT_EXT2FS, VT_VFS, VT_NTFS, VT_UDF,
+ VT_EXT2FS, VT_VFS, VT_NTFS, VT_UDF, VT_FUSEFS
};
#define VTAG_NAMES \
"NON", "UFS", "NFS", "MFS", "MSDOSFS", \
"PORTAL", "PROCFS", "AFS", "ISOFS", "ADOSFS", \
- "EXT2FS", "VFS", "NTFS", "UDF"
+ "EXT2FS", "VFS", "NTFS", "UDF", "FUSEFS"
/*
* Each underlying filesystem allocates its own private area and hangs