Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/lfs Set the legacy ulfs fstype field to ULFS2 when m...



details:   https://anonhg.NetBSD.org/src/rev/2e7f6ed8dea7
branches:  trunk
changeset: 341123:2e7f6ed8dea7
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Oct 19 04:22:18 2015 +0000

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

diffstat:

 sys/ufs/lfs/lfs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 14cdee9caf66 -r 2e7f6ed8dea7 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c  Mon Oct 19 04:21:48 2015 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c  Mon Oct 19 04:22:18 2015 +0000
@@ -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 @@
 
        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);



Home | Main Index | Thread Index | Old Index