Simulating disk failure with a writeback cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux