From: Claudio Martins <ctpm@ist.utl.pt>
To: reiserfs-list@namesys.com
Cc: Marcel Hilzinger <marcel@hilzinger.hu>
Subject: Re: Atomic filesystem or not
Date: Thu, 15 Jul 2004 13:54:47 +0100 [thread overview]
Message-ID: <200407151354.47063.ctpm@ist.utl.pt> (raw)
In-Reply-To: <200407151434.23082.marcel@hilzinger.hu>
On Thursday 15 July 2004 13:34, Marcel Hilzinger wrote:
> I tried to do a crash-test with Reiser4. I copied a 650 MB file from
> directory A to directory B and pressed the reset buttom at approx 300 MB
> (the testmachine has 256 MB RAM).
>
> After reboot the 300 MB chunk was still in B.
> I thougt it should be either there full or not at all? Or did I understand
> something wrong? Does it work only with files < RAM? What's the difference
You did understand something wrong ;-)
A copy using the Unix cp command is not an atomic operation per se. When it
is said that reiser4 is atomic what it means is that each low level operation
on the filesystem either happens or not at all. That means that each block
write request issued by cp either happens or not, but the entire 650MB copy
itself is composed of many separate atomig requests.
So what you shouldn't see on the half copied file is blocks which contain
zeros or otherwise garbage data that didn't belong to the original file (as
somethimes happens on other journalling filesystems, reiserfs 3.6 sometimes
included). If you check the differences between the files, they should
contain the same data up to the last block that hit disk surface before you
pressed the reset button.
As far as I understand this is the guarantee that reiser4 gives. For the cp
to happen entirely or not at all it would have to be one big atomic request
only, but I think that kind of operation might only be possible using the
special reiser4 system call in development.
Best regards
Claudio
> then?
>
> Marcel
next prev parent reply other threads:[~2004-07-15 12:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-15 12:34 Atomic filesystem or not Marcel Hilzinger
2004-07-15 12:54 ` Claudio Martins [this message]
2004-07-15 13:25 ` Marcel Hilzinger
2004-07-15 19:43 ` David Masover
2004-07-15 19:52 ` Hans Reiser
2004-07-16 1:46 ` David Masover
2004-07-19 8:33 ` Hans Reiser
2004-07-19 9:23 ` Toby Dickenson
2004-07-19 21:03 ` reiser acceptance (was Re: Atomic filesystem or not) David Masover
2004-07-19 22:07 ` John D. Heintz
2004-07-20 5:58 ` Hans Reiser
2004-07-20 7:28 ` David Masover
2004-07-20 5:27 ` Hans Reiser
2004-07-20 7:04 ` David Masover
2004-07-20 6:52 ` mjt
2004-07-20 7:39 ` David Masover
2004-07-20 8:03 ` mjt
2004-07-21 5:10 ` David Masover
2004-07-21 8:25 ` mjt
2004-07-22 8:08 ` Hans Reiser
2004-07-20 14:30 ` reiser acceptance Hubert Chan
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=200407151354.47063.ctpm@ist.utl.pt \
--to=ctpm@ist.utl.pt \
--cc=marcel@hilzinger.hu \
--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.