linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FAQ / encryption / error handling?
@ 2017-11-27  8:06 Daniel Pocock
  2017-11-27 10:06 ` Dmitrii Tcvetkov
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Pocock @ 2017-11-27  8:06 UTC (permalink / raw)
  To: linux-btrfs


Hi all,

The FAQ has a couple of sections on encryption (general and dm-crypt)

One thing that isn't explained there: if you create multiple encrypted
volumes (e.g. using dm-crypt) and use Btrfs to combine them into RAID1,
how does error recovery work when a read operation returns corrupted data?

Without encryption, reading from one disk would give a checksum mismatch
and Btrfs would read from the other disk to (hopefully) get a good copy
of the data.

With this encryption scenario, the failure would potentially be detected
in the decryption layer code and instead of returning bad data to Btrfs,
it would return some error code.  In that case, will Btrfs attempt to
read from the other volume and allow the application to proceed as if
nothing was wrong?

Regards,

Daniel


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

end of thread, other threads:[~2017-11-27 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-27  8:06 FAQ / encryption / error handling? Daniel Pocock
2017-11-27 10:06 ` Dmitrii Tcvetkov
2017-11-27 13:05   ` Austin S. Hemmelgarn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).