NetBSD Problem Report #2447
From gnats Mon May 20 12:14:16 1996
Received: from bunnahabhain.pdl.cs.cmu.edu by pain.lcs.mit.edu (8.7.4/8.6.12) with ESMTP id LAA18949 for <firstname.lastname@example.org>; Mon, 20 May 1996 11:44:16 -0400 (EDT)
Date: Mon, 20 May 1996 11:43:40 -0400 (EDT)
Subject: clean file systems with 'unexpected inconsistencies' not dirtied
>Synopsis: fsck doesn't "dirty" file systems with weird errors
>Arrival-Date: Mon May 20 12:20:15 +0000 1996
>Last-Modified: Mon Jun 05 22:15:05 +0000 2000
>Originator: Chris G. Demetriou
Kernel Hackers 'r' Us
System: NetBSD bunnahabhain.pdl.cs.cmu.edu 1.1B NetBSD 1.1B (BUNNY) #41: Sun May 19 17:34:11 EDT 1996 email@example.com:/usr/src/sys/arch/alpha/compile/BUNNY alpha
If fsck -p finds an 'unexpected inconsistency' in a file system,
it doesn't mark the file system as dirty. I'd say that it should.
clri an inode on a file system. unmount it. run 'fsck -fp' then
run 'fsck'. You'll get messages like:
balvenie# fsck -fp /dev/rsd2a
/dev/rsd2a: UNALLOCATED I=3302 OWNER=root MODE=0
/dev/rsd2a: SIZE=0 MTIME=Dec 31 19:00 1969
/dev/rsd2a: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY.
balvenie# fsck /dev/rsd2a
** File system is clean; not checking
This isn't necessarily a bug, however, it seems ... a bit odd
for fsck to discard useful information like this, especially
when the information points to a problem which could cause
file system corruption or a system panic in the future.
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
Subject: Re: bin/2447: clean file systems with 'unexpected inconsistencies' not dirtied
Date: Tue, 21 May 1996 06:22:31 -0400
> If fsck -p finds an 'unexpected inconsistency' in a file system,
> it doesn't mark the file system as dirty. I'd say that it should.
I'm not so sure; if the filesystem is clean (well, is marked clean),
fsck -p won't even run on it. If you use -f with -p, well, you should
also use -f with the manual run, no? (I Hate Clean Bits...I Hate Clean
Bits...I Hate Clean Bits... :-)
On a side note, I would say that clri _definitely_ should dirty the
filesystem it operates on.
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.