Whamcloud - gitweb
tune2fs: allow removal of dirty journal with two "-f" options
authorEric Sandeen <sandeen@redhat.com>
Fri, 21 Feb 2014 01:18:41 +0000 (20:18 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Feb 2014 01:49:56 +0000 (20:49 -0500)
commit5fe2bd60844cfe5d805e62a4316afaa5cd9d7c83
tree75947de43d613e81a0b24ee4976000d9b84de4dd
parent4f3ded2c152034536acc1de2a5448cffe94d4355
tune2fs: allow removal of dirty journal with two "-f" options

Jim pointed out that "tune2fs -f -O ^has_journal" won't remove the
journal if the needs_recovery flag is set; the manpage seems to indicate
that it should.  And if you've lost an external journal and can no longer
replay it, how should one proceed?

Change tune2fs so that two "-f" options will allow removal of a dirty
journal from a filesystem, even if the filesystem needs recovery.

e2fsck can then do its best to pick up the pieces.

Addresses-Debian-Bug: #559301

Reported-by: Jim Faulkner <james.faulkner@yale.edu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/tune2fs.8.in
misc/tune2fs.c