NetBSD Problem Report #24533
Received: (qmail 13966 invoked by uid 605); 23 Feb 2004 03:18:32 -0000
Message-Id: <20040223031827.1555F11152@narn.netbsd.org>
Date: Mon, 23 Feb 2004 03:18:27 +0000 (UTC)
From: uwe@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: uwe@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: mount -u fails for mfs filesystems
X-Send-Pr-Version: www-1.0
>Number: 24533
>Category: bin
>Synopsis: mount -u fails for mfs filesystems
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 23 03:19:00 +0000 2004
>Closed-Date: Sun Mar 07 00:18:30 +0000 2004
>Last-Modified: Sun Mar 07 00:19:00 +0000 2004
>Originator: Valeriy E. Ushakov
>Release: -current as of 2004-02-23
>Organization:
>Environment:
NetBSD nada 1.6ZK NetBSD 1.6ZK (NADA) #1: Mon Feb 23 04:59:31 MSK 2004 uwe@sampo:/export/netbsd/cvs/src/sys/arch/hpcsh/compile/NADA hpcsh
>Description:
$ mount_mfs -o ro -s 4m swap /mnt
$ mount -v -o rw -u /mnt
exec: mount_mfs -o update mfs:597 /mnt
mount_mfs: Unable to determine file system size
From a quick look the proble is that in sbin/newfs/newfs.c
the fssize variable is unitialized.
I encountered this while testing hpcsh miniroot,
so I guess all miniroot installs are potentially broken by this bug.
>How-To-Repeat:
See description.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: dsl
State-Changed-When: Sun Mar 7 00:17:39 UTC 2004
State-Changed-Why:
Fixed by rev 1.79 of newfs.c (short circuit update mounts)
From: David Laight <dsl@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/24533 CVS commit: src/sbin/newfs
Date: Sun, 7 Mar 2004 00:17:04 +0000 (UTC)
Module Name: src
Committed By: dsl
Date: Sun Mar 7 00:17:04 UTC 2004
Modified Files:
src/sbin/newfs: newfs.c
Log Message:
Make update mounts (to change miniroot ramdisks to rw) take the same short
circuit as MNT_GETARGS.
Fixes PR#24533
To generate a diff of this commit:
cvs rdiff -r1.78 -r1.79 src/sbin/newfs/newfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.