Module Name:    src
Committed By:   dholland
Date:           Mon Oct 19 04:22:18 UTC 2015

Modified Files:
        src/sys/ufs/lfs: lfs_vfsops.c

Log Message:
Set the legacy ulfs fstype field to ULFS2 when mounting lfs64. Oops.


To generate a diff of this commit:
cvs rdiff -u -r1.348 -r1.349 src/sys/ufs/lfs/lfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/lfs/lfs_vfsops.c
diff -u src/sys/ufs/lfs/lfs_vfsops.c:1.348 src/sys/ufs/lfs/lfs_vfsops.c:1.349
--- src/sys/ufs/lfs/lfs_vfsops.c:1.348	Thu Oct 15 06:25:34 2015
+++ src/sys/ufs/lfs/lfs_vfsops.c	Mon Oct 19 04:22:18 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: lfs_vfsops.c,v 1.348 2015/10/15 06:25:34 dholland Exp $	*/
+/*	$NetBSD: lfs_vfsops.c,v 1.349 2015/10/19 04:22:18 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.348 2015/10/15 06:25:34 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.349 2015/10/19 04:22:18 dholland Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_lfs.h"
@@ -1068,7 +1068,7 @@ lfs_mountfs(struct vnode *devvp, struct 
 
 	ump = kmem_zalloc(sizeof(*ump), KM_SLEEP);
 	ump->um_lfs = fs;
-	ump->um_fstype = ULFS1;
+	ump->um_fstype = fs->lfs_is64 ? ULFS2 : ULFS1;
 	/* ump->um_cleaner_thread = NULL; */
 	brelse(primarybuf, BC_INVAL);
 	brelse(altbuf, BC_INVAL);

Reply via email to