From: Theodore Tso <tytso@MIT.EDU>
To: Bas van Schaik <bas@tuxes.nl>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Scripting e2fsck: no errors, but still exit code 1 "FILE SYSTEM WAS MODIFIED"
Date: Tue, 20 May 2008 08:09:53 -0400 [thread overview]
Message-ID: <20080520120953.GO15035@mit.edu> (raw)
In-Reply-To: <48316565.1040501@tuxes.nl>
On Mon, May 19, 2008 at 01:32:53PM +0200, Bas van Schaik wrote:
>
> Does this tell you anything?
>
Unfortunately comparing the two dumpe2fs outputs don't show anything
interesting. It did rule out a few cases where e2fsck can silently
mark the filesystem has having been modified (setting the directory
hash hint, moving the journal inode, which it does silently without
informing the user --- and I should fix that one of these days; I'll
create some bug reports to remind myself they need to be fixed), but I
don't see why it happened for your case.
It's definitely not normal; doing a journal replay does not cause fsck
to exit with a non-zero status, if it didn't make any other changes.
I just tested that with e2fsprogs 1.40.8 just in case something had
gotten screwed up, and it worked as expected.
I know how to debug it if you are really motiviated to get to the
bottom of this. It would involve running a modified e2fsck/e2fsprogs
which changes ext2fs_mark_changed() and ext2fs_mark_super_dirty() to
be real functions, and setting breakpoints in gdb so we can trap any
calls made to those functions and dump out a stack backtrace, and then
continuing the e2fsck run, and then reporting to me the stack
backtraces where gdb trapped calls to ext2fs_mark_changed() and/or
ext2fs_mark_super_dirty().
Andreas is right though that if you are taking a proper snapshot, the
disk really should be quiesced and no journal replay should be
required at all. That's how a devicemapper snapshot works in LVM ---
so one good question to explore is how *are* you doing your snapshots.
- Ted
next prev parent reply other threads:[~2008-05-20 12:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-18 10:37 Scripting e2fsck: no errors, but still exit code 1 "FILE SYSTEM WAS MODIFIED" Bas van Schaik
2008-05-18 12:28 ` Theodore Tso
2008-05-18 16:18 ` Bas van Schaik
2008-05-19 11:23 ` Bas van Schaik
2008-05-19 11:32 ` Bas van Schaik
2008-05-20 12:09 ` Theodore Tso [this message]
2008-05-20 21:19 ` Bas van Schaik
2008-05-21 16:14 ` Andreas Dilger
2008-05-20 3:58 ` Andreas Dilger
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=20080520120953.GO15035@mit.edu \
--to=tytso@mit.edu \
--cc=bas@tuxes.nl \
--cc=linux-ext4@vger.kernel.org \
/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.