linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] sandbox: Minor fixes and improvements
@ 2021-08-19  3:40 Simon Glass
  2021-08-19  3:40 ` [PATCH 04/11] btrfs: Suppress the message about missing filesystem Simon Glass
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Glass @ 2021-08-19  3:40 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Simon Glass, Bin Meng, Claudiu Manoil, Dario Binacchi,
	Etienne Carriere, Heiko Schocher, Heinrich Schuchardt,
	Jaehoon Chung, Jean-Jacques Hiblot, Joao Marcos Costa,
	Kory Maincent, Marek Behun, Marek Vasut, Michael Walle,
	Miquel Raynal, Patrick Delaunay, Pavel Herrmann, Peng Fan,
	Philippe Reynes, Qu Wenruo, Sean Anderson, Sean Anderson,
	Thomas Petazzoni, Vincent Stehlé,
	Walter Lozano, linux-btrfs

This series collects a few patches that correct and improve sandbox and
sandbox_spl:

- Fix a bug in --rm-memory works
- Support an MMC backing file for MMC emulator, to allow filesystems to be
  used without needing the 'host' filesystem
- Allow skipping console output when checking verbose commands
- Suppress unwanted filesystem warnings when probing partitions
- Tidy up a few comments


Simon Glass (11):
  dtoc: Further improve documentation about warnings
  sandbox: Correct handling of --rm_memory
  sandbox: Add license headers to the dts files
  btrfs: Suppress the message about missing filesystem
  sqfs: Suppress the message about missing filesystem
  test: Tidy a comment in the bloblist test
  dm: core: Fix a few incorrect comments on first/next functions
  sandbox: Add a way to find the size of a file
  sandbox: Add a way to map a file into memory
  sandbox: mmc: Support a backing file
  test: Add a way to skip console checking until a string matches

 arch/sandbox/cpu/os.c                        | 52 +++++++++--
 arch/sandbox/dts/overlay0.dts                |  5 ++
 arch/sandbox/dts/overlay1.dts                |  5 ++
 arch/sandbox/dts/sandbox.dts                 |  5 ++
 arch/sandbox/dts/sandbox.dtsi                |  1 +
 arch/sandbox/dts/sandbox64.dts               |  4 +
 arch/sandbox/dts/test.dts                    |  9 ++
 doc/develop/driver-model/of-plat.rst         | 92 +++++++++++++++++++-
 doc/device-tree-bindings/mmc/sandbox,mmc.txt | 18 ++++
 drivers/mmc/sandbox_mmc.c                    | 46 ++++++++--
 fs/btrfs/disk-io.c                           |  8 +-
 fs/squashfs/sqfs.c                           |  2 +-
 include/dm/device.h                          |  4 +-
 include/dm/uclass.h                          |  2 +-
 include/os.h                                 | 21 +++++
 include/test/ut.h                            | 24 +++++
 test/bloblist.c                              |  2 +-
 test/ut.c                                    | 26 ++++++
 18 files changed, 299 insertions(+), 27 deletions(-)
 create mode 100644 doc/device-tree-bindings/mmc/sandbox,mmc.txt

-- 
2.33.0.rc1.237.g0d66db33f3-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 04/11] btrfs: Suppress the message about missing filesystem
  2021-08-19  3:40 [PATCH 00/11] sandbox: Minor fixes and improvements Simon Glass
@ 2021-08-19  3:40 ` Simon Glass
  2021-08-19 10:31   ` Marek Behún
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Glass @ 2021-08-19  3:40 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Simon Glass, Marek Behun, Qu Wenruo, linux-btrfs

This message comes up a lot when scanning filesystems. It suggests to the
user that there is some sort of error, but in fact there is no reason to
expect that a particular partition has a btrfs filesystem. Other
filesystems don't print this error.

Turn it into a debug message.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 fs/btrfs/disk-io.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 349411c3ccd..1b69346e231 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -886,7 +886,11 @@ static int btrfs_scan_fs_devices(struct blk_desc *desc,
 
 	ret = btrfs_scan_one_device(desc, part, fs_devices, &total_devs);
 	if (ret) {
-		fprintf(stderr, "No valid Btrfs found\n");
+		/*
+		 * Avoid showing this when probing for a possible Btrfs
+		 *
+		 * fprintf(stderr, "No valid Btrfs found\n");
+		 */
 		return ret;
 	}
 	return 0;
@@ -975,7 +979,7 @@ struct btrfs_fs_info *open_ctree_fs_info(struct blk_desc *desc,
 	disk_super = fs_info->super_copy;
 	ret = btrfs_read_dev_super(desc, part, disk_super);
 	if (ret) {
-		printk("No valid btrfs found\n");
+		debug("No valid btrfs found\n");
 		goto out_devices;
 	}
 
-- 
2.33.0.rc1.237.g0d66db33f3-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 04/11] btrfs: Suppress the message about missing filesystem
  2021-08-19  3:40 ` [PATCH 04/11] btrfs: Suppress the message about missing filesystem Simon Glass
@ 2021-08-19 10:31   ` Marek Behún
  2021-08-19 10:48   ` Qu Wenruo
  2021-09-23  2:08   ` Tom Rini
  2 siblings, 0 replies; 5+ messages in thread
From: Marek Behún @ 2021-08-19 10:31 UTC (permalink / raw)
  To: Simon Glass; +Cc: U-Boot Mailing List, Qu Wenruo, linux-btrfs

On Wed, 18 Aug 2021 21:40:26 -0600
Simon Glass <sjg@chromium.org> wrote:

> This message comes up a lot when scanning filesystems. It suggests to the
> user that there is some sort of error, but in fact there is no reason to
> expect that a particular partition has a btrfs filesystem. Other
> filesystems don't print this error.
> 
> Turn it into a debug message.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Marek Behún <marek.behun@nic.cz>

This must have been introduced after btrfs was reimplemented from the
btrfs-progs sources. I remember that I sent a patch fixing this same
issue for the previous implementation (or was it another filesystem?).

Marek

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 04/11] btrfs: Suppress the message about missing filesystem
  2021-08-19  3:40 ` [PATCH 04/11] btrfs: Suppress the message about missing filesystem Simon Glass
  2021-08-19 10:31   ` Marek Behún
@ 2021-08-19 10:48   ` Qu Wenruo
  2021-09-23  2:08   ` Tom Rini
  2 siblings, 0 replies; 5+ messages in thread
From: Qu Wenruo @ 2021-08-19 10:48 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List; +Cc: Marek Behun, Qu Wenruo, linux-btrfs



On 2021/8/19 上午11:40, Simon Glass wrote:
> This message comes up a lot when scanning filesystems. It suggests to the
> user that there is some sort of error, but in fact there is no reason to
> expect that a particular partition has a btrfs filesystem. Other
> filesystems don't print this error.
>
> Turn it into a debug message.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu
> ---
>
>   fs/btrfs/disk-io.c | 8 ++++++--
>   1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
> index 349411c3ccd..1b69346e231 100644
> --- a/fs/btrfs/disk-io.c
> +++ b/fs/btrfs/disk-io.c
> @@ -886,7 +886,11 @@ static int btrfs_scan_fs_devices(struct blk_desc *desc,
>
>   	ret = btrfs_scan_one_device(desc, part, fs_devices, &total_devs);
>   	if (ret) {
> -		fprintf(stderr, "No valid Btrfs found\n");
> +		/*
> +		 * Avoid showing this when probing for a possible Btrfs
> +		 *
> +		 * fprintf(stderr, "No valid Btrfs found\n");
> +		 */
>   		return ret;
>   	}
>   	return 0;
> @@ -975,7 +979,7 @@ struct btrfs_fs_info *open_ctree_fs_info(struct blk_desc *desc,
>   	disk_super = fs_info->super_copy;
>   	ret = btrfs_read_dev_super(desc, part, disk_super);
>   	if (ret) {
> -		printk("No valid btrfs found\n");
> +		debug("No valid btrfs found\n");
>   		goto out_devices;
>   	}
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 04/11] btrfs: Suppress the message about missing filesystem
  2021-08-19  3:40 ` [PATCH 04/11] btrfs: Suppress the message about missing filesystem Simon Glass
  2021-08-19 10:31   ` Marek Behún
  2021-08-19 10:48   ` Qu Wenruo
@ 2021-09-23  2:08   ` Tom Rini
  2 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2021-09-23  2:08 UTC (permalink / raw)
  To: Simon Glass; +Cc: U-Boot Mailing List, Marek Behun, Qu Wenruo, linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

On Wed, Aug 18, 2021 at 09:40:26PM -0600, Simon Glass wrote:

> This message comes up a lot when scanning filesystems. It suggests to the
> user that there is some sort of error, but in fact there is no reason to
> expect that a particular partition has a btrfs filesystem. Other
> filesystems don't print this error.
> 
> Turn it into a debug message.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Marek Behún <marek.behun@nic.cz>
> Reviewed-by: Qu Wenruo <wqu@suse.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-23  2:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  3:40 [PATCH 00/11] sandbox: Minor fixes and improvements Simon Glass
2021-08-19  3:40 ` [PATCH 04/11] btrfs: Suppress the message about missing filesystem Simon Glass
2021-08-19 10:31   ` Marek Behún
2021-08-19 10:48   ` Qu Wenruo
2021-09-23  2:08   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).