Skip to contentSkip to conversation

external journal lost [PATCH]

DISCUSSION Andreas Dilger 1 participant 1 message Apr 9, 2009 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 6 lines · Christian Kujau
Quoted 5 lines · Christian Kujau

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:

Quoted 7 lines
Quoted 3 lines

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.

Quoted 21 lines
misc/tune2fs.c renamed from misc/tune2fs.c.ORIG +2 -2
@@ -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);
Signature · 7 lines
-- 
Bruce Schneier knows the secret formula for Coca-Cola.

_______________________________________________
Ext3-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ext3-users

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.