Re: [Libguestfs] [PATCH 0/1] WIP: Support LUKS-encrypted partitions

2020-01-22 Thread Richard W.M. Jones
On Tue, Jan 21, 2020 at 02:53:32PM +, Richard W.M. Jones wrote: > https://github.com/libguestfs/libguestfs/blob/a754cd43078e43f1a2b5d10e54b684c70c5525d7/generator/actions_core.ml#L213 This one is probably a clearer example:

Re: [Libguestfs] [PATCH 0/1] WIP: Support LUKS-encrypted partitions

2020-01-21 Thread Richard W.M. Jones
On Tue, Jan 21, 2020 at 03:07:11PM +0100, Jan Synacek wrote: > The following patch attempts to implement sparsification of > LUKS-encrypted partitions. It uses lsblk to pair the underlying LUKS > block device with its mapped name. Also, --allow-discards was added > by default to luks_open(). > >

[Libguestfs] [PATCH 0/1] WIP: Support LUKS-encrypted partitions

2020-01-21 Thread Jan Synacek
The following patch attempts to implement sparsification of LUKS-encrypted partitions. It uses lsblk to pair the underlying LUKS block device with its mapped name. Also, --allow-discards was added by default to luks_open(). There are several potential issues that I can think of: 1) If and entire