Skip to contentSkip to conversation

ext3: errors behaviour fix

PATCH New Vasily Averin 1 participant 1 message Oct 4, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext3: errors behaviour fix

From: Dmitry Mishin <[email protected]>

EXT3_ERRORS_CONTINUE should be taken from the superblock as default value for error behaviour.

fs/ext3/super.c renamed from fs/ext3/super.c.e3erop +2 -0
@@ -1466,6 +1466,8 @@ static int ext3_fill_super (struct super
 		set_opt(sbi->s_mount_opt, ERRORS_PANIC);
 	else if (le16_to_cpu(sbi->s_es->s_errors) == EXT3_ERRORS_RO)
 		set_opt(sbi->s_mount_opt, ERRORS_RO);
+	else
+		set_opt(sbi->s_mount_opt, ERRORS_CONT);
 
 	sbi->s_resuid = le16_to_cpu(es->s_def_resuid);
 	sbi->s_resgid = le16_to_cpu(es->s_def_resgid);