UBIFS: remove invalid warn msg with tst_recovery enabled
Signed-off-by: Mats Karrman <mats.karrman@tritech.se> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
This commit is contained in:
committed by
Artem Bityutskiy
parent
d4e4ab86bc
commit
c23e9b75cc
@@ -2587,10 +2587,11 @@ int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
|
|||||||
return -EROFS;
|
return -EROFS;
|
||||||
|
|
||||||
failing = power_cut_emulated(c, lnum, 1);
|
failing = power_cut_emulated(c, lnum, 1);
|
||||||
if (failing)
|
if (failing) {
|
||||||
len = corrupt_data(c, buf, len);
|
len = corrupt_data(c, buf, len);
|
||||||
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
|
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
|
||||||
len, lnum, offs);
|
len, lnum, offs);
|
||||||
|
}
|
||||||
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
|
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
Reference in New Issue
Block a user