NetBSD Problem Report #44271
From mlelstv@henery.1st.de Thu Dec 23 18:22:25 2010
Return-Path: <mlelstv@henery.1st.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id A49F563B9BC
for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Dec 2010 18:22:25 +0000 (UTC)
Message-Id: <20101223182150.8098F28168@henery.1st.de>
Date: Thu, 23 Dec 2010 19:21:50 +0100 (CET)
From: mlelstv@serpens.de
Reply-To: mlelstv@serpens.de
To: gnats-bugs@gnats.NetBSD.org
Subject: modular i386 kernel fails to use 4k-sector disk
X-Send-Pr-Version: 3.95
>Number: 44271
>Category: kern
>Synopsis: modular i386 kernel fails to use 4k-sector disks
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 23 18:25:00 +0000 2010
>Closed-Date: Sat Dec 29 06:19:17 +0000 2018
>Last-Modified: Sat Dec 29 06:19:17 +0000 2018
>Originator: Michael van Elst
>Release: -current
>Organization:
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
>Environment:
Architecture: i386
Machine: i386
>Description:
Mounting a FFS filesystem on a 4k-sector disk fails when you run
i386/GENERIC, it works fine with i386/MONOLITHIC.
The reason is that i386/GENERIC uses ffs as a module which is
built with APPLE_UFS compatibility, while this is disabled in
the MONOLITHIC kernel.
Since such a label cannot be simply read from a 4k-sector disk,
the mount operation aborts with an error.
>How-To-Repeat:
Boot i386/GENERIC, create a FFS filesystem on a 4k-sector disk
and try to mount it.
>Fix:
Make APPLE_UFS fail gracefully when the label cannot be read.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->kern-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sat, 25 Dec 2010 09:32:48 +0000
Responsible-Changed-Why:
gnats-admin isn't supposed to own real PRs
State-Changed-From-To: open->closed
State-Changed-By: mlelstv@NetBSD.org
State-Changed-When: Sat, 29 Dec 2018 06:19:17 +0000
State-Changed-Why:
The bug was fixed with ffs_vfsops.c 1.265
>Unformatted:
sys/ufs/ffs/ffs_vfsops.c 1.265:
Don't abort when APPLE_UFS autodetection cannot read the apple ufs label
due to sector size or alignment problems. Autodetection is only a safety
measure, you should mark the filesystem type in the BSD disklabel.
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.