From 3dd058744292725ea73c1c76b15e1bd7f2e9fd6b Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Mon, 24 Jun 1996 03:35:06 +0000 Subject: 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. --- sys/ufs/ffs/ffs_vfsops.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sys/ufs/ffs/ffs_vfsops.c') 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 #include #include +#include #include #include @@ -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; -- cgit v1.2.3