Bug 33464 - [ufs] soft update inconsistencies after system crash
Summary: [ufs] soft update inconsistencies after system crash
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.4-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-02 09:50 UTC by Volker Paepcke
Modified: 2011-09-24 16:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Paepcke 2002-01-02 09:50:00 UTC
After a non-hardware crash where the system had no chance to flush its
buffers to disk (reset button, reboot -nq, reset from debugger) fsck
reports a soft update inconsistency in preen mode during restart:

Jan  2 10:18:01 bajor root: /dev/ad0s2g: LINK COUNT DIR I=253952  OWNER=root MODE=40775
Jan  2 10:18:01 bajor root: /dev/ad0s2g: SIZE=512 MTIME=Jan  2 10:14 2002  COUNT 2 SHOULD BE 3
Jan  2 10:18:01 bajor root: /dev/ad0s2g: LINK COUNT INCREASING
Jan  2 10:18:01 bajor root: /dev/ad0s2g: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY.

From my understanding of soft updates (see http://www.mckusick.com/softdep/index.html) this should never
happen except after a power failure with write-cache enabled on the
disk or after media failures.

How-To-Repeat: Start extracting ports.tgz from FreeBSD installation CDROM into a soft updates enabled partition and hit reset after a few seconds. The result is the same on three different machines with ATA-, SCSI- (Adaptec-2940) and SCSI-RAID-Controllers (ICP-Vortex). Changing the write-cache settings on the disks/controllers has no effect and there was definitly no power loss during the crash.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2002-01-11 16:18:27 UTC
Responsible Changed
From-To: freebsd-bugs->dillon

Over to the resident soft updates man, since most of this stuff 
gets handled by Matt instead of Kirk these days.
Comment 2 Giorgos Keramidas freebsd_committer freebsd_triage 2003-02-23 02:16:31 UTC
Responsible Changed
From-To: dillon->freebsd-bugs

Back to the free pool.
Comment 3 Bruce Cran freebsd_committer freebsd_triage 2010-03-05 19:14:21 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2011-09-24 05:09:26 UTC
State Changed
From-To: open->feedback

Is this still an issue on recent versions of FreeBSD?
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2011-09-24 16:16:50 UTC
State Changed
From-To: feedback->closed

as per previous comment