On Fri, Oct 28, 2016 at 05:13:10AM -0800, Kent Overstreet wrote: > t > On Fri, Oct 28, 2016 at 03:07:20PM +0200, Vojtech Pavlik wrote: > > The only situation where data damage can happen is a power outage that > > comes together with a loss of one of the drives. In such a case, the > > content of any blocks written past the last barrier is undefined. It > > then depends on the filesystem whether it can revert to the last sane > > state. Not sure about others, but btrfs will do so. > > It's not any data written since the last barrier - in a non COW filesystem, > potentially the entire stripe is toast, which means existing unrelated data gets > corrupted. There's nothing really a non COW filesystem can do about it. Again, you're right, if a drive is lost during a power outage, there can be damage even outside of the blocks that were written if plain data was written and xor wasn't. I don't think there is a filesystem that can handle damage to untouched data cleanly. An additional journal that works closely with the RAID device and tracks what has been written to all devices is required to close this remaining gap. But then, if the journal device is lost during a power outage ... ;) -- Vojtech Pavlik Director SuSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html