fs: Quieten down the filesystems more
When looking for a filesystem on a partition we should do so quietly. At present if the filesystem is very small (e.g. 512 bytes) we get a host of messages. Update these to only show when debugging. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
#include <common.h>
|
||||
#include <fs_internal.h>
|
||||
#include <log.h>
|
||||
#include <uuid.h>
|
||||
#include <memalign.h>
|
||||
#include "kernel-shared/btrfs_tree.h"
|
||||
@@ -910,9 +911,9 @@ static int btrfs_scan_fs_devices(struct blk_desc *desc,
|
||||
|
||||
if (round_up(BTRFS_SUPER_INFO_SIZE + BTRFS_SUPER_INFO_OFFSET,
|
||||
desc->blksz) > (part->size << desc->log2blksz)) {
|
||||
error("superblock end %u is larger than device size " LBAFU,
|
||||
BTRFS_SUPER_INFO_SIZE + BTRFS_SUPER_INFO_OFFSET,
|
||||
part->size << desc->log2blksz);
|
||||
log_debug("superblock end %u is larger than device size " LBAFU,
|
||||
BTRFS_SUPER_INFO_SIZE + BTRFS_SUPER_INFO_OFFSET,
|
||||
part->size << desc->log2blksz);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -2415,7 +2415,7 @@ int ext4fs_mount(unsigned part_length)
|
||||
|
||||
return 1;
|
||||
fail:
|
||||
printf("Failed to mount ext2 filesystem...\n");
|
||||
log_debug("Failed to mount ext2 filesystem...\n");
|
||||
fail_noerr:
|
||||
free(data);
|
||||
ext4fs_root = NULL;
|
||||
|
||||
@@ -29,8 +29,7 @@ int fs_devread(struct blk_desc *blk, struct disk_partition *partition,
|
||||
/* Check partition boundaries */
|
||||
if ((sector + ((byte_offset + byte_len - 1) >> log2blksz))
|
||||
>= partition->size) {
|
||||
log_err("%s read outside partition " LBAFU "\n", __func__,
|
||||
sector);
|
||||
log_debug("read outside partition " LBAFU "\n", sector);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user