public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [discussion] proposal to bypass zero data for dm-crypt
@ 2024-12-21  2:34 Yu Kuai
  2025-01-03 16:25 ` Mikulas Patocka
  2025-01-07  2:04 ` James Bottomley
  0 siblings, 2 replies; 7+ messages in thread
From: Yu Kuai @ 2024-12-21  2:34 UTC (permalink / raw)
  To: Alasdair Kergon, Mike Snitzer, Mikulas Patocka, dm-devel, lkml,
	yukuai (C)

Background

We provide virtual machines for customers to use, which include an 
important feature: in the initial state, the disks in the virtual 
machine do not occupy actual storage space, and the data read by users 
is all zeros until the user writes data for the first time. This can 
save a large amount of storage.

Problem

However, after introducing dm-crypt, this feature has failed. Because we 
expect the data read by users in the initial state to be zero, we have 
to write all zeros from dm-crypt.

Hence we'd like to propose to bypass zero data for dm-crypt, for
example:

before:
zero data -> encrypted zero data
decrypted zero data -> zero data
others

after:
zero data -> zero data
decrypted zero data -> encrypted zero data
others(doesn't change)

We'd like to hear from the community for suggestions first, before we
start. :)

Thanks,
Kuai


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

end of thread, other threads:[~2025-01-07  2:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-21  2:34 [discussion] proposal to bypass zero data for dm-crypt Yu Kuai
2025-01-03 16:25 ` Mikulas Patocka
2025-01-05 20:54   ` Milan Broz
2025-01-06  1:43     ` Yu Kuai
2025-01-06  9:09       ` Milan Broz
2025-01-06  9:39         ` Yu Kuai
2025-01-07  2:04 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox