From: David Masover <ninja@slaphack.com>
To: Payal Rathod <payal-fs@scriptkitchen.com>
Cc: reiserfs-list@namesys.com
Subject: Re: somewhat OT query on journalling
Date: Wed, 19 Jul 2006 14:19:41 -0500 [thread overview]
Message-ID: <44BE85CD.4020603@slaphack.com> (raw)
In-Reply-To: <20060719152744.GA26155@tranquility.scriptkitchen.com>
Payal Rathod wrote:
> Hi,
> I was just reading about filesystems and my ideas are a bit confused.
> And lastly don't the journalling fs give a false sense of security to
> the user, saying that the data is written to disk when in reality only an
> entry is made in journal and data is still not committed to disk.
A journaling fs does guarantee one thing: The filesystem itself is
consistent. Any changes you make to the directory structure either
succeed completely or fail completely.
This means that, while you may lose data, at least you won't lose your
whole partition. A non-journaling fs can lose a whole partition this
way, which is one of the main reasons some people like to split their
disk up into lots of tiny, specialized partitions.
Last I checked (a year ago, at least) there was an API planned for
Reiser4 which would make it possible for applications to define their
own transaction. Any string of operations you could perform on the fs
(probably with some limitations) or on a single file could be combined
into one transaction, which either succeeds entirely, or fails entirely.
So, for instance, if you save a file, there may not be a guarantee that
the file is written to disk, but there's a guarantee that if the file is
written to disk, either the whole file was saved, or none of it at all.
This is a good thing, because the alternative is to allow some of the
file to be saved, which almost always means a corrupt file.
Journaling could give a false sense of security if you think it means
you'll never lose data. Power fails, disks fail, and the question is
when you'll lose data, not if. Make backups, no matter what your FS.
But given the choice, journaling is much better than no journaling. The
disadvantage is it slows the system down when implemented poorly. So
the solution is to use a journaled filesystem that does it right.
next prev parent reply other threads:[~2006-07-19 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-19 15:27 somewhat OT query on journalling Payal Rathod
2006-07-19 17:30 ` Toby Thain
2006-07-19 17:30 ` Toby Thain
2006-07-19 19:09 ` David Masover
2006-07-19 19:19 ` David Masover [this message]
2006-07-19 20:28 ` Hans Reiser
2006-07-21 12:45 ` Payal Rathod
2006-07-21 18:54 ` David Masover
2006-07-21 21:26 ` Andreas Schäfer
2006-07-21 21:53 ` David Masover
2006-07-22 0:54 ` Hans Reiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44BE85CD.4020603@slaphack.com \
--to=ninja@slaphack.com \
--cc=payal-fs@scriptkitchen.com \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.