Message ID | 1442400499-22539-1-git-send-email-shengyong1@huawei.com |
---|---|
State | Accepted |
Headers | show |
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; >
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;
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(-)