summaryrefslogtreecommitdiff
path: root/sys/ufs/mfs
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-04 22:44:33 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-04 22:44:33 +0000
commitf1bec1965343db9a80a80e7ed55ee2fe5dd36253 (patch)
tree079f5363174a8394c440390c31604f27f1101bc3 /sys/ufs/mfs
parent2ae3b1f139f1a10569ee4341888c32f5a70281cb (diff)
Readd VOP_MMAP, will be used soon. Right now it's just a question to
the filesystem if we're allowed to mmap the file.
Diffstat (limited to 'sys/ufs/mfs')
-rw-r--r--sys/ufs/mfs/mfs_vnops.c5
-rw-r--r--sys/ufs/mfs/mfsnode.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c
index a0a666222e1..cacf6fce8ee 100644
--- a/sys/ufs/mfs/mfs_vnops.c
+++ b/sys/ufs/mfs/mfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfs_vnops.c,v 1.16 2001/06/23 02:07:56 csapuntz Exp $ */
+/* $OpenBSD: mfs_vnops.c,v 1.17 2001/12/04 22:44:32 art Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */
/*
@@ -93,7 +93,8 @@ struct vnodeopv_entry_desc mfs_vnodeop_entries[] = {
{ &vop_pathconf_desc, mfs_pathconf }, /* pathconf */
{ &vop_advlock_desc, mfs_advlock }, /* advlock */
{ &vop_bwrite_desc, mfs_bwrite }, /* bwrite */
- { (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
+ { &vop_mmap_desc, mfs_mmap },
+ { NULL, NULL }
};
struct vnodeopv_desc mfs_vnodeop_opv_desc =
{ &mfs_vnodeop_p, mfs_vnodeop_entries };
diff --git a/sys/ufs/mfs/mfsnode.h b/sys/ufs/mfs/mfsnode.h
index cdae3c783a2..dbf8b7dd2c2 100644
--- a/sys/ufs/mfs/mfsnode.h
+++ b/sys/ufs/mfs/mfsnode.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfsnode.h,v 1.7 1998/08/06 19:35:11 csapuntz Exp $ */
+/* $OpenBSD: mfsnode.h,v 1.8 2001/12/04 22:44:32 art Exp $ */
/* $NetBSD: mfsnode.h,v 1.3 1996/02/09 22:31:31 christos Exp $ */
/*
@@ -87,3 +87,4 @@ struct mfsnode {
#define mfs_truncate mfs_badop
#define mfs_update nullop
#define mfs_bwrite vop_generic_bwrite
+#define mfs_mmap mfs_badop \ No newline at end of file