Subject: kern/5077: ext2fs_mountfs prints extraneous warning
To: None <>
From: Soren S. Jorvang <>
List: netbsd-bugs
Date: 02/27/1998 16:51:02
>Number:         5077
>Category:       kern
>Synopsis:       ext2fs_mountfs prints extraneous warning
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 27 08:05:01 1998
>Originator:     Soren S. Jorvang
Preferably not.
>Release:        NetBSD-current 19980227
System: NetBSD gnyf 1.3D NetBSD 1.3D (GNYF) #0: Fri Feb 27 04:07:53 CET 1998 root@gnyf:/usr/src/sys/arch/i386/compile/GNYF i386

When mounting an FFS partition as root with a kernel that includes ext2fs, an extraneous warning is printed.

boot device: sd0
root on sd0a dumps on sd0b
Wrong magic number: 28 (expected ef53 for ext2 fs) or wrong revision number: 8ed08ed8 (expected 0 for ext2 fs)
root file system type: ffs

file-system	FFS
file-system	EXT2FS


--- /sys/ufs/ext2fs/ext2fs_vfsops.c	Thu Feb 19 13:12:21 1998
+++ ext2fs_vfsops.c	Fri Feb 27 16:42:18 1998
@@ -553,5 +553,5 @@
 	if (fs2h16(fs->e2fs_magic) != E2FS_MAGIC ||
 		fs2h32(fs->e2fs_rev) != E2FS_REV) {
+#ifdef DEBUG_EXT2
 		printf("Wrong magic number: %x (expected %x for ext2 fs)",
 			fs2h16(fs->e2fs_magic), E2FS_MAGIC);