Commit 51be47166319dfbf68828182cb57889bae4dc20b

Authored by Marek Behún
Committed by Tom Rini
1 parent b7d6e0abab

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

fs/ext4/ext4_common.c
... ... @@ -2343,7 +2343,7 @@
2343 2343  
2344 2344 /* Make sure this is an ext2 filesystem. */
2345 2345 if (le16_to_cpu(data->sblock.magic) != EXT2_MAGIC)
2346   - goto fail;
  2346 + goto fail_noerr;
2347 2347  
2348 2348  
2349 2349 if (le32_to_cpu(data->sblock.revision_level) == 0) {
... ... @@ -2379,6 +2379,7 @@
2379 2379 return 1;
2380 2380 fail:
2381 2381 printf("Failed to mount ext2 filesystem...\n");
  2382 +fail_noerr:
2382 2383 free(data);
2383 2384 ext4fs_root = NULL;
2384 2385