On Wed, 1 Aug 2001 15:00:39 -0400, Jay R. Ashworth wrote:
>guarantee that the drive channel won't fail while we're trying to write
>your data on the disk... so we'll *write it on the disk first*, just in
>case"?
>
>I've never quite gotten that, myself.
>
>If a drive fails in mid write, then there's *going* to be some data
>half-written, no?
Yes.. But the key is that the journal contains all the file
operations that have been done or will be done to the filesystem.
Journaling dosne't necessarly keep data from being half written but
it allows for safe recovery in the event of. During the fsck when
the journal is checked agains the fs then the incomplete journal
entry is discarded.
So you can't really keep data from being lost but you can recover to
a known good state. Or at least thats the theory anyway.
--
Richard A. Smith Bitworks, Inc.
[EMAIL PROTECTED] 501.846.5777
Sr. Design Engineer http://www.bitworks.com
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.