diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 566344b926b7..ee8695464957 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -981,7 +981,7 @@ static ext4_fsblk_t get_sb_block(void **data) | |||
981 | /*todo: use simple_strtoll with >32bit ext4 */ | 981 | /*todo: use simple_strtoll with >32bit ext4 */ |
982 | sb_block = simple_strtoul(options, &options, 0); | 982 | sb_block = simple_strtoul(options, &options, 0); |
983 | if (*options && *options != ',') { | 983 | if (*options && *options != ',') { |
984 | printk("EXT4-fs: Invalid sb specification: %s\n", | 984 | printk(KERN_ERR "EXT4-fs: Invalid sb specification: %s\n", |
985 | (char *) *data); | 985 | (char *) *data); |
986 | return 1; | 986 | return 1; |
987 | } | 987 | } |
@@ -1082,7 +1082,8 @@ static int parse_options(char *options, struct super_block *sb, | |||
1082 | #else | 1082 | #else |
1083 | case Opt_user_xattr: | 1083 | case Opt_user_xattr: |
1084 | case Opt_nouser_xattr: | 1084 | case Opt_nouser_xattr: |
1085 | printk("EXT4 (no)user_xattr options not supported\n"); | 1085 | printk(KERN_ERR "EXT4 (no)user_xattr options " |
1086 | "not supported\n"); | ||
1086 | break; | 1087 | break; |
1087 | #endif | 1088 | #endif |
1088 | #ifdef CONFIG_EXT4DEV_FS_POSIX_ACL | 1089 | #ifdef CONFIG_EXT4DEV_FS_POSIX_ACL |
@@ -1095,7 +1096,8 @@ static int parse_options(char *options, struct super_block *sb, | |||
1095 | #else | 1096 | #else |
1096 | case Opt_acl: | 1097 | case Opt_acl: |
1097 | case Opt_noacl: | 1098 | case Opt_noacl: |
1098 | printk("EXT4 (no)acl options not supported\n"); | 1099 | printk(KERN_ERR "EXT4 (no)acl options " |
1100 | "not supported\n"); | ||
1099 | break; | 1101 | break; |
1100 | #endif | 1102 | #endif |
1101 | case Opt_reservation: | 1103 | case Opt_reservation: |
@@ -1189,8 +1191,8 @@ set_qf_name: | |||
1189 | sb_any_quota_suspended(sb)) && | 1191 | sb_any_quota_suspended(sb)) && |
1190 | !sbi->s_qf_names[qtype]) { | 1192 | !sbi->s_qf_names[qtype]) { |
1191 | printk(KERN_ERR | 1193 | printk(KERN_ERR |
1192 | "EXT4-fs: Cannot change journaled " | 1194 | "EXT4-fs: Cannot change journaled " |
1193 | "quota options when quota turned on.\n"); | 1195 | "quota options when quota turned on.\n"); |
1194 | return 0; | 1196 | return 0; |
1195 | } | 1197 | } |
1196 | qname = match_strdup(&args[0]); | 1198 | qname = match_strdup(&args[0]); |
@@ -1473,14 +1475,14 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es, | |||
1473 | EXT4_INODES_PER_GROUP(sb), | 1475 | EXT4_INODES_PER_GROUP(sb), |
1474 | sbi->s_mount_opt); | 1476 | sbi->s_mount_opt); |
1475 | 1477 | ||
1476 | printk(KERN_INFO "EXT4 FS on %s, ", sb->s_id); | ||
1477 | if (EXT4_SB(sb)->s_journal->j_inode == NULL) { | 1478 | if (EXT4_SB(sb)->s_journal->j_inode == NULL) { |
1478 | char b[BDEVNAME_SIZE]; | 1479 | char b[BDEVNAME_SIZE]; |
1479 | 1480 | ||
1480 | printk("external journal on %s\n", | 1481 | printk(KERN_INFO "EXT4 FS on %s, external journal on %s\n", |
1481 | bdevname(EXT4_SB(sb)->s_journal->j_dev, b)); | 1482 | sb->s_id, bdevname(EXT4_SB(sb)->s_journal->j_dev, b)); |
1482 | } else { | 1483 | } else { |
1483 | printk("internal journal\n"); | 1484 | printk(KERN_INFO "EXT4 FS on %s, internal journal\n", |
1485 | sb->s_id); | ||
1484 | } | 1486 | } |
1485 | return res; | 1487 | return res; |
1486 | } | 1488 | } |
@@ -2715,6 +2717,11 @@ static int ext4_load_journal(struct super_block *sb, | |||
2715 | return -EINVAL; | 2717 | return -EINVAL; |
2716 | } | 2718 | } |
2717 | 2719 | ||
2720 | if (journal->j_flags & JBD2_BARRIER) | ||
2721 | printk(KERN_INFO "EXT4-fs: barriers enabled\n"); | ||
2722 | else | ||
2723 | printk(KERN_INFO "EXT4-fs: barriers disabled\n"); | ||
2724 | |||
2718 | if (!really_read_only && test_opt(sb, UPDATE_JOURNAL)) { | 2725 | if (!really_read_only && test_opt(sb, UPDATE_JOURNAL)) { |
2719 | err = jbd2_journal_update_format(journal); | 2726 | err = jbd2_journal_update_format(journal); |
2720 | if (err) { | 2727 | if (err) { |