Skip to content

Commit

Permalink
Merge tag 'upstream-3.12-rc1' of git://git.infradead.org/linux-ubifs
Browse files Browse the repository at this point in the history
Pull ubifs fix from Artem Bityutskiy:
 "Just one patch which fixes the power-cut recovery testing mode.

  I'll start using a single UBI/UBIFS tree instead of 2 trees from now
  on.  So in the future you'll get 1 small pull request instead of 2
  tiny ones"

* tag 'upstream-3.12-rc1' of git://git.infradead.org/linux-ubifs:
  UBIFS: remove invalid warn msg with tst_recovery enabled
  • Loading branch information
Linus Torvalds committed Sep 16, 2013
2 parents d8efd82 + c23e9b7 commit 098e7f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2587,10 +2587,11 @@ int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
return -EROFS;

failing = power_cut_emulated(c, lnum, 1);
if (failing)
if (failing) {
len = corrupt_data(c, buf, len);
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
len, lnum, offs);
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
len, lnum, offs);
}
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
if (err)
return err;
Expand Down

0 comments on commit 098e7f1

Please sign in to comment.