提交 51be4716 编写于 作者: M Marek Behún 提交者: Tom Rini

fs: ext4: Do not print mount fail message when not ext4 filesystem

Other filesystem drivers don't do this.
Signed-off-by: NMarek Behun <marek.behun@nic.cz>
上级 b7d6e0ab
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册