Fix copy&pasto: when we find a FFSv1 filesystem, properly record it

that way - so the correct bootblocks get installed on system upgrades.
This commit is contained in:
martin 2019-08-04 10:29:41 +00:00
parent c564f35f60
commit 6477ac5760
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: label.c,v 1.11 2019/08/01 16:32:06 martin Exp $ */
/* $NetBSD: label.c,v 1.12 2019/08/04 10:29:41 martin Exp $ */
/*
* Copyright 1997 Jonathan Stone
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: label.c,v 1.11 2019/08/01 16:32:06 martin Exp $");
__RCSID("$NetBSD: label.c,v 1.12 2019/08/04 10:29:41 martin Exp $");
#endif
#include <sys/types.h>
@ -1578,7 +1578,7 @@ get_last_mounted(int fd, daddr_t partstart, uint *fs_type, uint *fs_sub_type,
if (fs_type)
*fs_type = FS_BSDFFS;
if (fs_sub_type)
*fs_sub_type = 2;
*fs_sub_type = 1;
continue;
case FS_UFS2_MAGIC:
case FS_UFS2_MAGIC_SWAPPED: