[dm-devel] Help request: setting up /dev/zero using dm-crypt ...

Heinz Mauelshagen heinzm at redhat.com
Wed Feb 7 13:43:28 UTC 2018


On 02/07/2018 09:50 AM, Ravi Prakash Putchala wrote:
> Thank you, Milan. Will try these.
>
>     If you need experiment over a memory device, use either ramdisk,
>     scsi_debug module to it.
>     Another alternative is to create dm-zero device and use plain
>     dm-crypt (not LUKS).
>
>
> create dm-zero device:  How do I do this? Sorry, I do not have much 
> expertise in Linux.


E.g. 10TiB "zero" mapped device (pick your name instead of 'z'):

dmsetup create z --table "0 $((10*1024*1024*1024*2)) zero"

Block device node for this is:

  /dev/mapper/z


See dmsetup(8) and device-mapper target documentation in kernel source,
for instance Documentaion/device-mapper/zero.txt.

Heinz

>
> Ravi
>
>
> --
> dm-devel mailing list
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20180207/3cf066af/attachment.htm>


More information about the dm-devel mailing list