Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2012 14:43:50 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   SU: Could an unclean shutdown cause a file with outstanding writes to become sparse after fsck?
Message-ID:  <CAFMmRNwsLRo=S-LTuct-e51osz4V-HMxUxs0tc2VwsDsKjvySg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Today I encountered a system running a very old version of FreeBSD
(6.1-ish) that was stuck in a reboot loop.  I was eventually able to
discover that the system was running into a long-since fixed bug where
the system would panic if you tried to execute a sparse file.  From
what I've been able to get from the owner of this system, it sounds
like the machine reset during a system upgrade.  I suspect that the
initial reset was unrelated (a different long-since fixed panic or a
power loss, maybe), and that some executables that had outstanding
writes before the reset ended up becoming sparse when fsck was run.
Is this possible?  The filesystem was running soft-updates, and I'm
really not familiar enough with either soft-updates or even the UFS
on-disk metadata to say whether this is reasonable.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNwsLRo=S-LTuct-e51osz4V-HMxUxs0tc2VwsDsKjvySg>