mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
fs: btrfs: Do not print mount fail message when not btrfs filesystem
Other filesystem drivers don't do this. Signed-off-by: Marek Behún <marek.behun@nic.cz>
This commit is contained in:
@@ -198,17 +198,16 @@ int btrfs_read_superblock(void)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (btrfs_check_super_csum(raw_sb)) {
|
if (btrfs_check_super_csum(raw_sb)) {
|
||||||
printf("%s: invalid checksum at superblock mirror %i\n",
|
debug("%s: invalid checksum at superblock mirror %i\n",
|
||||||
__func__, i);
|
__func__, i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
btrfs_super_block_to_cpu(sb);
|
btrfs_super_block_to_cpu(sb);
|
||||||
|
|
||||||
if (sb->magic != BTRFS_MAGIC) {
|
if (sb->magic != BTRFS_MAGIC) {
|
||||||
printf("%s: invalid BTRFS magic 0x%016llX at "
|
debug("%s: invalid BTRFS magic 0x%016llX at "
|
||||||
"superblock mirror %i\n", __func__, sb->magic,
|
"superblock mirror %i\n", __func__, sb->magic, i);
|
||||||
i);
|
|
||||||
} else if (sb->bytenr != superblock_offsets[i]) {
|
} else if (sb->bytenr != superblock_offsets[i]) {
|
||||||
printf("%s: invalid bytenr 0x%016llX (expected "
|
printf("%s: invalid bytenr 0x%016llX (expected "
|
||||||
"0x%016llX) at superblock mirror %i\n",
|
"0x%016llX) at superblock mirror %i\n",
|
||||||
@@ -224,7 +223,7 @@ int btrfs_read_superblock(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!btrfs_info.sb.generation) {
|
if (!btrfs_info.sb.generation) {
|
||||||
printf("%s: No valid BTRFS superblock found!\n", __func__);
|
debug("%s: No valid BTRFS superblock found!\n", __func__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user