diff options
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index d31928975cc8..448bf24ef8d0 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c | |||
@@ -89,9 +89,8 @@ static int validate_inode(struct ubifs_info *c, const struct inode *inode) | |||
89 | return 5; | 89 | return 5; |
90 | 90 | ||
91 | if (!ubifs_compr_present(ui->compr_type)) { | 91 | if (!ubifs_compr_present(ui->compr_type)) { |
92 | ubifs_warn("inode %lu uses '%s' compression, but it was not " | 92 | ubifs_warn("inode %lu uses '%s' compression, but it was not compiled in", |
93 | "compiled in", inode->i_ino, | 93 | inode->i_ino, ubifs_compr_name(ui->compr_type)); |
94 | ubifs_compr_name(ui->compr_type)); | ||
95 | } | 94 | } |
96 | 95 | ||
97 | err = dbg_check_dir(c, inode); | 96 | err = dbg_check_dir(c, inode); |
@@ -1061,8 +1060,8 @@ static int ubifs_parse_options(struct ubifs_info *c, char *options, | |||
1061 | 1060 | ||
1062 | flag = parse_standard_option(p); | 1061 | flag = parse_standard_option(p); |
1063 | if (!flag) { | 1062 | if (!flag) { |
1064 | ubifs_err("unrecognized mount option \"%s\" " | 1063 | ubifs_err("unrecognized mount option \"%s\" or missing value", |
1065 | "or missing value", p); | 1064 | p); |
1066 | return -EINVAL; | 1065 | return -EINVAL; |
1067 | } | 1066 | } |
1068 | sb->s_flags |= flag; | 1067 | sb->s_flags |= flag; |
@@ -1124,8 +1123,8 @@ again: | |||
1124 | } | 1123 | } |
1125 | 1124 | ||
1126 | /* Just disable bulk-read */ | 1125 | /* Just disable bulk-read */ |
1127 | ubifs_warn("Cannot allocate %d bytes of memory for bulk-read, " | 1126 | ubifs_warn("cannot allocate %d bytes of memory for bulk-read, disabling it", |
1128 | "disabling it", c->max_bu_buf_len); | 1127 | c->max_bu_buf_len); |
1129 | c->mount_opts.bulk_read = 1; | 1128 | c->mount_opts.bulk_read = 1; |
1130 | c->bulk_read = 0; | 1129 | c->bulk_read = 0; |
1131 | return; | 1130 | return; |
@@ -1416,11 +1415,11 @@ static int mount_ubifs(struct ubifs_info *c) | |||
1416 | if (c->ro_mount) | 1415 | if (c->ro_mount) |
1417 | ubifs_msg("mounted read-only"); | 1416 | ubifs_msg("mounted read-only"); |
1418 | x = (long long)c->main_lebs * c->leb_size; | 1417 | x = (long long)c->main_lebs * c->leb_size; |
1419 | ubifs_msg("file system size: %lld bytes (%lld KiB, %lld MiB, %d " | 1418 | ubifs_msg("file system size: %lld bytes (%lld KiB, %lld MiB, %d LEBs)", |
1420 | "LEBs)", x, x >> 10, x >> 20, c->main_lebs); | 1419 | x, x >> 10, x >> 20, c->main_lebs); |
1421 | x = (long long)c->log_lebs * c->leb_size + c->max_bud_bytes; | 1420 | x = (long long)c->log_lebs * c->leb_size + c->max_bud_bytes; |
1422 | ubifs_msg("journal size: %lld bytes (%lld KiB, %lld MiB, %d " | 1421 | ubifs_msg("journal size: %lld bytes (%lld KiB, %lld MiB, %d LEBs)", |
1423 | "LEBs)", x, x >> 10, x >> 20, c->log_lebs + c->max_bud_cnt); | 1422 | x, x >> 10, x >> 20, c->log_lebs + c->max_bud_cnt); |
1424 | ubifs_msg("media format: w%d/r%d (latest is w%d/r%d)", | 1423 | ubifs_msg("media format: w%d/r%d (latest is w%d/r%d)", |
1425 | c->fmt_version, c->ro_compat_version, | 1424 | c->fmt_version, c->ro_compat_version, |
1426 | UBIFS_FORMAT_VERSION, UBIFS_RO_COMPAT_VERSION); | 1425 | UBIFS_FORMAT_VERSION, UBIFS_RO_COMPAT_VERSION); |
@@ -1563,10 +1562,9 @@ static int ubifs_remount_rw(struct ubifs_info *c) | |||
1563 | 1562 | ||
1564 | if (c->rw_incompat) { | 1563 | if (c->rw_incompat) { |
1565 | ubifs_err("the file-system is not R/W-compatible"); | 1564 | ubifs_err("the file-system is not R/W-compatible"); |
1566 | ubifs_msg("on-flash format version is w%d/r%d, but software " | 1565 | ubifs_msg("on-flash format version is w%d/r%d, but software only supports up to version w%d/r%d", |
1567 | "only supports up to version w%d/r%d", c->fmt_version, | 1566 | c->fmt_version, c->ro_compat_version, |
1568 | c->ro_compat_version, UBIFS_FORMAT_VERSION, | 1567 | UBIFS_FORMAT_VERSION, UBIFS_RO_COMPAT_VERSION); |
1569 | UBIFS_RO_COMPAT_VERSION); | ||
1570 | return -EROFS; | 1568 | return -EROFS; |
1571 | } | 1569 | } |
1572 | 1570 | ||
@@ -1827,8 +1825,8 @@ static void ubifs_put_super(struct super_block *sb) | |||
1827 | * next mount, so we just print a message and | 1825 | * next mount, so we just print a message and |
1828 | * continue to unmount normally. | 1826 | * continue to unmount normally. |
1829 | */ | 1827 | */ |
1830 | ubifs_err("failed to write master node, " | 1828 | ubifs_err("failed to write master node, error %d", |
1831 | "error %d", err); | 1829 | err); |
1832 | } else { | 1830 | } else { |
1833 | for (i = 0; i < c->jhead_cnt; i++) | 1831 | for (i = 0; i < c->jhead_cnt; i++) |
1834 | /* Make sure write-buffer timers are canceled */ | 1832 | /* Make sure write-buffer timers are canceled */ |
@@ -2247,8 +2245,7 @@ static int __init ubifs_init(void) | |||
2247 | * UBIFS_BLOCK_SIZE. It is assumed that both are powers of 2. | 2245 | * UBIFS_BLOCK_SIZE. It is assumed that both are powers of 2. |
2248 | */ | 2246 | */ |
2249 | if (PAGE_CACHE_SIZE < UBIFS_BLOCK_SIZE) { | 2247 | if (PAGE_CACHE_SIZE < UBIFS_BLOCK_SIZE) { |
2250 | ubifs_err("VFS page cache size is %u bytes, but UBIFS requires" | 2248 | ubifs_err("VFS page cache size is %u bytes, but UBIFS requires at least 4096 bytes", |
2251 | " at least 4096 bytes", | ||
2252 | (unsigned int)PAGE_CACHE_SIZE); | 2249 | (unsigned int)PAGE_CACHE_SIZE); |
2253 | return -EINVAL; | 2250 | return -EINVAL; |
2254 | } | 2251 | } |