* Re: [PATCH] UBIFS: print verbose message when rescanning a corrupted node
2015-09-16 10:48 [PATCH] UBIFS: print verbose message when rescanning a corrupted node Sheng Yong
@ 2015-09-16 5:45 ` Dongsheng Yang
0 siblings, 0 replies; 2+ messages in thread
From: Dongsheng Yang @ 2015-09-16 5:45 UTC (permalink / raw)
To: Sheng Yong, dedekind1, richard.weinberger; +Cc: linux-mtd
On 09/16/2015 06:48 PM, Sheng Yong wrote:
> This is a trivial fix of showing verbose message when leb-recovery detects
> a corrupted node, which is not the last one in the LEB. Rescan expects to
> show more detail of the corrupted node.
>
> Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Looks good.
Reviewed-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
> ---
> fs/ubifs/recovery.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
> index 62903b6..e18085b 100644
> --- a/fs/ubifs/recovery.c
> +++ b/fs/ubifs/recovery.c
> @@ -805,7 +805,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
> corrupted_rescan:
> /* Re-scan the corrupted data with verbose messages */
> ubifs_err(c, "corruption %d", ret);
> - ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
> + ubifs_scan_a_node(c, buf, len, lnum, offs, 0);
> corrupted:
> ubifs_scanned_corruption(c, lnum, offs, buf);
> err = -EUCLEAN;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] UBIFS: print verbose message when rescanning a corrupted node
@ 2015-09-16 10:48 Sheng Yong
2015-09-16 5:45 ` Dongsheng Yang
0 siblings, 1 reply; 2+ messages in thread
From: Sheng Yong @ 2015-09-16 10:48 UTC (permalink / raw)
To: dedekind1, richard.weinberger; +Cc: linux-mtd
This is a trivial fix of showing verbose message when leb-recovery detects
a corrupted node, which is not the last one in the LEB. Rescan expects to
show more detail of the corrupted node.
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
---
fs/ubifs/recovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 62903b6..e18085b 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -805,7 +805,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum,
corrupted_rescan:
/* Re-scan the corrupted data with verbose messages */
ubifs_err(c, "corruption %d", ret);
- ubifs_scan_a_node(c, buf, len, lnum, offs, 1);
+ ubifs_scan_a_node(c, buf, len, lnum, offs, 0);
corrupted:
ubifs_scanned_corruption(c, lnum, offs, buf);
err = -EUCLEAN;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-16 5:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 10:48 [PATCH] UBIFS: print verbose message when rescanning a corrupted node Sheng Yong
2015-09-16 5:45 ` Dongsheng Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.