From: Vijayan Prabhakaran <pvijayan@gmail.com>
To: reiserfs-list@namesys.com
Cc: vijayan@cs.wisc.edu
Subject: Bug in writeback mode
Date: Wed, 18 Aug 2004 14:28:59 -0500 [thread overview]
Message-ID: <d68fdf7d040818122869621552@mail.gmail.com> (raw)
Hi,
I'm testing the different journaling modes of Reiserfs and I came
across the following bug in writeback mode.
When a file block is overwritten synchronously, two blocks should get written:
1. The file block itself.
2. The file's stat info block - the one which contains the modification time.
Since the block is overwritten no other attributes (like size) of the
file changes. Only the time stamps have to be updated.
The problem is that the stat block is not getting written in writeback
mode - even after a fsync!
In ordered mode, everything works properly. That is, when I issue
fsync the following happens in ordered mode:
1. user process issues fsync
2. file block written to its fixed location
3. journal descriptor block is written to the journal
4. file's stat block is written to the journal
5. journal commit block is written to the journal
6. user process returns from fsync
In writeback mode, the stat block gets written only in the first
fsync. For later fsyncs, the following events happen:
1. user process issues fsync
2. file block written to its fixed location
3. user process returns from fsync
That is, in writeback mode, the file's stat data is not updated.
I also verified this by running a small workload that did:
1. write to a file synchronously
2. cause a file system failure
3. remount the file system
After the file system remount I noticed that the modification time of
the file was not updated in writeback mode.
Note that this does not affect the consistency of the file system as
all the data are still accessible correctly. But, some applications
like 'make', which depends on the modification time stamp will fail.
I'm using reiserfs from linux 2.4.25 with data journaling patch.
Can someone please take a look at this and see if this bug really exists ?
I appreciate any help regarding this.
thanks,
Vijayan
reply other threads:[~2004-08-18 19:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=d68fdf7d040818122869621552@mail.gmail.com \
--to=pvijayan@gmail.com \
--cc=reiserfs-list@namesys.com \
--cc=vijayan@cs.wisc.edu \
/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.