All of lore.kernel.org
 help / color / mirror / Atom feed
* Simulating disk failure with a writeback cache
@ 2016-12-15  2:26 Kent Overstreet
  2016-12-15  4:15 ` Josef Bacik
  0 siblings, 1 reply; 15+ messages in thread
From: Kent Overstreet @ 2016-12-15  2:26 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: david, hch

As many tests as there are in xfstests that simulate disk failure/powerloss, I'm
having a hard time believing that no one's bothered to write code to simulate a
writeback cache (so the test can drop the cached writes and test flush/fua
correctness).

So does anyone know if such code exists and I just missed it?

Or failing that, any suggestions on the easiest way to hack something up? This
is turning into a really irritating problem because it'd be simple enough to
write from scratch, but given the amount of code we have that does stuff like
this writing it from scratch seems rather silly - hacking loop to do buffered IO
instead of O_DIRECT would almost do it, I'd think, except I'm looking at loop.c
and just trying to follow the entry points and control flow is making my blood
pressure rise.

Ideally we'd have something that could easily slot into xfstests, which is using
dm-flakey for these tests right now...

Any ideas?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-12-20  1:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15  2:26 Simulating disk failure with a writeback cache Kent Overstreet
2016-12-15  4:15 ` Josef Bacik
2016-12-18 20:12   ` Kent Overstreet
2016-12-18 20:38     ` Josef Bacik
2016-12-18 20:46       ` Kent Overstreet
2016-12-18 21:19         ` Josef Bacik
2016-12-19  2:51           ` Kent Overstreet
2016-12-19  3:07             ` Kent Overstreet
2016-12-19 12:58               ` Josef Bacik
2016-12-19 15:27               ` Josef Bacik
2016-12-19 20:55                 ` Kent Overstreet
2016-12-19 21:00                   ` Josef Bacik
2016-12-19 21:53                     ` Kent Overstreet
2016-12-20  1:01                       ` Josef Bacik
2016-12-20  1:30                         ` Kent Overstreet

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.