* Re: external journal lost [PATCH]
[not found] ` <alpine.DEB.2.01.0904080135360.6162@bogon.housecafe.de>
@ 2009-04-09 4:31 ` Andreas Dilger
0 siblings, 0 replies; only message in thread
From: Andreas Dilger @ 2009-04-09 4:31 UTC (permalink / raw)
To: Christian Kujau; +Cc: ext-users, linux-ext4
On Apr 08, 2009 01:40 -0700, Christian Kujau wrote:
> On Thu, 2 Apr 2009, Christian Kujau wrote:
> > Hm, I never had to forcefully remove a journal (yet), but from reading the
> > manpage I'd indeed expect to get this removed even if the filesystem is in
> > error. The attached patch to e2fsprogs (latest git) makes tune2fs removing
> > the journal when "-f" is supplied. And it seems to work so far:
> >
> > http://nerdbynature.de/bits/tune2fs/
> >
> > Comments?
>
> Hm, I was really hoping someone would comment on this, as I'm a) puzzled
> as well, why the -force option does not work as expected and b) if this is
> the right thing to do:
Proabably the right thing to do.
> --- e2fsprogs-git/misc/tune2fs.c.ORIG 2009-04-02 22:40:58.740218188 +0200
> +++ e2fsprogs-git/misc/tune2fs.c 2009-04-02 22:42:37.221830335 +0200
> @@ -374,8 +374,8 @@ static void update_feature_set(ext2_fils
> "read-only.\n"), stderr);
> exit(1);
> }
> - if (sb->s_feature_incompat &
> - EXT3_FEATURE_INCOMPAT_RECOVER) {
> + if ((sb->s_feature_incompat &
> + EXT3_FEATURE_INCOMPAT_RECOVER) && (!f_flag)) {
> fputs(_("The needs_recovery flag is set. "
> "Please run e2fsck before clearing\n"
> "the has_journal flag.\n"), stderr);
>
> --
> Bruce Schneier knows the secret formula for Coca-Cola.
>
> _______________________________________________
> Ext3-users mailing list
> Ext3-users@redhat.com
> https://www.redhat.com/mailman/listinfo/ext3-users
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-09 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090331144755.GA14155@droog.sdf-eu.org>
[not found] ` <20090402120800.GB6618@droog.sdf-eu.org>
[not found] ` <alpine.DEB.2.01.0904021408040.6162@bogon.housecafe.de>
[not found] ` <alpine.DEB.2.01.0904080135360.6162@bogon.housecafe.de>
2009-04-09 4:31 ` external journal lost [PATCH] Andreas Dilger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).