summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-06-24 03:35:06 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-06-24 03:35:06 +0000
commit3dd058744292725ea73c1c76b15e1bd7f2e9fd6b (patch)
tree3e7b8d92fb269421a7073e97583d1422fec7dff1 /sys/ufs/ffs/ffs_vfsops.c
parent4fd419c58bfe70b818aa4e53892254bc7f46212e (diff)
ufs changes: add the notion of directory operators.
gnu/ext2fs: add the second extended filesystem. Note that I'm commiting this now for the sake of the ufs changes; ext2fs is not yet fully integrated into the system.
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index eecb3c01d98..4cba7974dd2 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.4 1996/02/27 07:27:39 niklas Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.5 1996/06/24 03:35:01 downsj Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -57,6 +57,7 @@
#include <ufs/ufs/quota.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/inode.h>
+#include <ufs/ufs/dir.h>
#include <ufs/ufs/ufs_extern.h>
#include <ufs/ffs/fs.h>
@@ -79,6 +80,14 @@ struct vfsops ffs_vfsops = {
ffs_init,
};
+static struct ufs_dirops ffs_dirops = {
+ ufs_dirremove,
+ ufs_direnter,
+ ufs_dirempty,
+ ufs_dirrewrite,
+ ufs_checkpath,
+};
+
extern u_long nextgennumber;
/*
@@ -794,6 +803,7 @@ ffs_vget(mp, ino, vpp)
ip->i_fs = fs = ump->um_fs;
ip->i_dev = dev;
ip->i_number = ino;
+ ip->i_dirops = &ffs_dirops;
#ifdef QUOTA
{
int i;