*BSD News Article 62070


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!bcm.tmc.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!usenet.eel.ufl.edu!news.uoregon.edu!kaiwan.kaiwan.com!pell.pell.chi.il.us!there.is.no.cabal
From: orc@pell.chi.il.us (Orc)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.development.system
Subject: Re: The better (more suitable)Unix?? FreeBSD or Linux
Date: 23 Feb 1996 14:40:26 -0800
Organization: I *plonk* LA
Lines: 39
Message-ID: <4glfoq$4lo@pell.pell.chi.il.us>
References: <4er9hp$5ng@orb.direct.ca> <4g5k95$28m@park.uvsc.edu> <4ggol0$38h@pell.pell.chi.il.us> <4giebg$70o@park.uvsc.edu>
NNTP-Posting-Host: pell.pell.chi.il.us
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:14282 comp.os.linux.development.system:17908

In article <4giebg$70o@park.uvsc.edu>,
Terry Lambert  <terry@lambert.org> wrote:
>orc@pell.chi.il.us (Orc) wrote:

>1)	I have a file "foo" that has inode 175 and points to
>	blocks 10, 20, 30, and 40
>
>2)	I delete file foo.  Inode 175 is freed.
>
>3)	I create file "fie", which allocates inode 176.  I
>	allocate block 10.  I write sensitive information in
>	block 10.
>
>4)	The system crashes before the new block list for inode
>	175 is written and before "fie" is committed to disk,
>	but after block 10 is committed to disk.


    Okay, but what about the situation of:

1)	I have a file foo that contains sensitive information in blocks
	A, B, C.

2)	I delete this file; the metadata is updated.

3)	Someone else creates a new file bar, and writes a block to it.
	The metadata is written immediately, and is assigned block A.
	The data, being async, is saved to be written when it's
	convenient.  (Say the elevator is going down, and the
	metadata lives at block X while the data's at X+n, and
	the metadata is pushed out when the elevator is X <
	elevator < X+n.)

4)	I press the Big Red Switch.


                  ____
    david parsons \bi/ Perhaps it's time to put soft updates into the ext2fs.
                   \/