Nicolas Williams writes:
> On Wed, Mar 19, 2008 at 06:54:00PM +0100, Casper.Dik at Sun.COM wrote:
> > 
> > >Then I don't see how SMF/SQLite can protect itself.  I mean, the
> > >contents of /etc/inet/hosts on my laptop had been *completely* replaced
> > >with some other file's content (I forget which).  I wonder if the fact
> > >that the system came up without forcing single-user mode (to manually
> > >fsck /) had anything to do with that.
> > 
> > But of course it can!  It's just not easy.
> 
> Well, that UFS problem seemed so random... (or perhaps DHCP was updating
> my hosts file?)

There've been troubles (particularly in the logging system) where
deleting a file, creating a new one, and then crashing before the
directory updates themselves get out to disk causes havoc such as you
describe.

Search the bug database.  In any event, Casper's right.  It's possible
to make applications that can deal with system halts at any point, and
still keep the data self-consistent.  That some applications don't get
it right doesn't mean that none can do it.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to