aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorMarek BehĂșn2018-03-08 00:26:08 +0100
committerTom Rini2018-03-09 12:31:07 -0500
commit51be47166319dfbf68828182cb57889bae4dc20b (patch)
treebd8d00f21e1cc7f8368050750223853df2e7f48e /fs/ext4
parentb7d6e0abab528af910a998b15f85b5e0dff1eff6 (diff)
fs: ext4: Do not print mount fail message when not ext4 filesystem
Other filesystem drivers don't do this. Signed-off-by: Marek Behun <marek.behun@nic.cz>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/ext4_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index dac95453650..e3cc30a1e0a 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -2343,7 +2343,7 @@ int ext4fs_mount(unsigned part_length)
/* Make sure this is an ext2 filesystem. */
if (le16_to_cpu(data->sblock.magic) != EXT2_MAGIC)
- goto fail;
+ goto fail_noerr;
if (le32_to_cpu(data->sblock.revision_level) == 0) {
@@ -2379,6 +2379,7 @@ int ext4fs_mount(unsigned part_length)
return 1;
fail:
printf("Failed to mount ext2 filesystem...\n");
+fail_noerr:
free(data);
ext4fs_root = NULL;