summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-06-29 04:09:33 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-06-29 04:09:33 +0000
commit9d1f1706a17992becd55e7fd38d41128fbfdca86 (patch)
treecedcaef0ff9d8afcd21cca6705f5a2bdeafb57a4
parentf4321cdc2fe2069471ff0680eba9cfe45504d2c7 (diff)
makefstype was only used in ported from freebsd filesystems. fix them
and remove the function. ok thib
-rw-r--r--sys/isofs/udf/udf_vfsops.c4
-rw-r--r--sys/kern/vfs_subr.c19
-rw-r--r--sys/ntfs/ntfs_vfsops.c4
-rw-r--r--sys/sys/mount.h3
4 files changed, 6 insertions, 24 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index 40875383e6d..627c79be718 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.32 2009/12/19 00:27:17 krw Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.33 2010/06/29 04:09:32 tedu Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -256,7 +256,7 @@ udf_mountfs(struct vnode *devvp, struct mount *mp, uint32_t lb, struct proc *p)
mp->mnt_data = (qaddr_t) ump;
mp->mnt_stat.f_fsid.val[0] = devvp->v_rdev;
- mp->mnt_stat.f_fsid.val[1] = makefstype(MOUNT_UDF);
+ mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_flag |= MNT_LOCAL;
ump->um_mountp = mp;
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f6dd44b4bbe..61fc62d20b4 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.186 2010/06/28 18:50:36 claudio Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.187 2010/06/29 04:09:32 tedu Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -278,23 +278,6 @@ vfs_getnewfsid(struct mount *mp)
}
/*
- * Make a 'unique' number from a mount type name.
- * Note that this is no longer used for ffs which
- * now has an on-disk filesystem id.
- */
-long
-makefstype(char *type)
-{
- long rv;
-
- for (rv = 0; *type; type++) {
- rv <<= 2;
- rv ^= *type;
- }
- return rv;
-}
-
-/*
* Set vnode attributes to VNOVAL
*/
void
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c
index 0edb1b57c96..969be3f68a9 100644
--- a/sys/ntfs/ntfs_vfsops.c
+++ b/sys/ntfs/ntfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vfsops.c,v 1.15 2009/08/13 16:00:53 jasper Exp $ */
+/* $OpenBSD: ntfs_vfsops.c,v 1.16 2010/06/29 04:09:32 tedu Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */
/*-
@@ -472,7 +472,7 @@ ntfs_mountfs(devvp, mp, argsp, p)
}
mp->mnt_stat.f_fsid.val[0] = dev;
- mp->mnt_stat.f_fsid.val[1] = makefstype(MOUNT_NTFS);
+ mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_maxsymlinklen = 0;
mp->mnt_flag |= MNT_LOCAL;
devvp->v_specmountpoint = mp;
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index c10e34cd5a3..3d30bb9a99c 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount.h,v 1.99 2009/10/14 17:53:30 beck Exp $ */
+/* $OpenBSD: mount.h,v 1.100 2010/06/29 04:09:32 tedu Exp $ */
/* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */
/*
@@ -643,7 +643,6 @@ int speedup_syncer(void);
int vfs_syncwait(int); /* sync and wait for complete */
void vfs_shutdown(void); /* unmount and sync file systems */
-long makefstype(char *);
int dounmount(struct mount *, int, struct proc *, struct vnode *);
void vfsinit(void);
int vfs_register(struct vfsconf *);