]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/unix.c
e2fsck: add an option which causes it to only do a journal replay
authorBernd Schubert <bs_lists@aakef.fastmail.fm>
Fri, 12 Nov 2010 23:09:07 +0000 (00:09 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Dec 2010 22:15:55 +0000 (17:15 -0500)
commit71873b17307993c08b38b97c9551bed231e6048c
tree88c69886f68a0f6bb0072c2ad8514832bbc75bb9
parentb95ca92811e182c10150f8d2d08d6113af2abdf9
e2fsck: add an option which causes it to only do a journal replay

As recently discussed on linux-ext4@vger.kernel.org add an option to e2fsck
to allow to replay the journal only. That will allow scripts, such as
pacemakers 'Filesystem' RA to first replay the journal and if that sets
an error state from the journal replay, further check for that error
(dumpe2fh -h | grep "Filesystem state:") and if that shows and error
to refuse to mount. It also allows automatic e2fsck scripts to first
replay the journal and on a second run after the real pass1 to passX checks
to test for the return code.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.8.in
e2fsck/e2fsck.h
e2fsck/unix.c