<br><br>在 2022年8月1日星期一,Heinrich Schuchardt <<a href="mailto:heinrich.schuchardt@canonical.com">heinrich.schuchardt@canonical.com</a>> 写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">fs_set_blk_dev() probes all file-systems until it finds one that matches<br>
the volume. We do not expect any console output for non-matching<br>
file-systems.<br>
<br>
Convert error messages in erofs_read_superblock() to debug output.<br>
<br>
Fixes: 830613f8f5bb ("fs/erofs: add erofs filesystem support")<br>
Signed-off-by: Heinrich Schuchardt <<a href="mailto:heinrich.schuchardt@canonical.com">heinrich.schuchardt@<wbr>canonical.com</a>><br>
Reviewed-by: Simon Glass <<a href="mailto:sjg@chromium.org">sjg@chromium.org</a>><br>
---<br>
v2:<br>
        keep erofs_err() for block size mismatch<br>
---<br>
 fs/erofs/super.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)</blockquote><div><br></div><div>Looks good to me.</div><div>Reviewed-by: Huang Jianan <<a href="mailto:jnhuang95@gmail.com">jnhuang95@gmail.com</a>> </div><div><br></div><div>Thanks,</div><div>Jianan  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff --git a/fs/erofs/super.c b/fs/erofs/super.c<br>
index 4cca322b9e..8277d9b53f 100644<br>
--- a/fs/erofs/super.c<br>
+++ b/fs/erofs/super.c<br>
@@ -65,14 +65,14 @@ int erofs_read_superblock(void)<br>
<br>
        ret = erofs_blk_read(data, 0, 1);<br>
        if (ret < 0) {<br>
-               erofs_err("cannot read erofs superblock: %d", ret);<br>
+               erofs_dbg("cannot read erofs superblock: %d", ret);<br>
                return -EIO;<br>
        }<br>
        dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET);<br>
<br>
        ret = -EINVAL;<br>
        if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) {<br>
-               erofs_err("cannot find valid erofs superblock");<br>
+               erofs_dbg("cannot find valid erofs superblock");<br>
                return ret;<br>
        }<br>
 <br>
-- <br>
2.36.1<br>
<br>
</blockquote>