summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-04-01 11:24:48 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-04-01 11:24:48 +0000
commit82d8573df349e79e2e9493839c16d18f546f3aaf (patch)
tree0faf1b27023c01548a711a356ec20aafb6c49783 /sys/ufs/ffs/ffs_vfsops.c
parenta20fe97ea70ee7f43127000e99c26c98a355a350 (diff)
Mark FFS2 file systems with UM_UFS2
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index fd6373581ce..07c31477e3d 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.88 2006/03/31 16:24:58 pedro Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.89 2006/04/01 11:24:47 pedro Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -751,9 +751,14 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p)
bzero(ump, sizeof *ump);
ump->um_fs = malloc((u_long)fs->fs_sbsize, M_UFSMNT,
M_WAITOK);
- if (fs->fs_magic == FS_UFS1_MAGIC) {
+
+ if (fs->fs_magic == FS_UFS1_MAGIC)
ump->um_fstype = UM_UFS1;
- }
+#ifdef FFS2
+ else
+ ump->um_fstype = UM_UFS2;
+#endif
+
bcopy(bp->b_data, ump->um_fs, (u_int)fs->fs_sbsize);
if (fs->fs_sbsize < SBSIZE)
bp->b_flags |= B_INVAL;