mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
New APIs: cryptsetup-open and cryptsetup-close.
This commit deprecates luks-open/luks-open-ro/luks-close for the more generic sounding names cryptsetup-open/cryptsetup-close, which also correspond directly to the cryptsetup commands. The optional cryptsetup-open readonly flag is used to replace the functionality of luks-open-ro. The optional cryptsetup-open crypttype parameter can be used to select the type (corresponding to cryptsetup open --type), which allows us to open BitLocker-encrypted disks with no extra effort. As a convenience the crypttype parameter may be omitted, and libguestfs will use a heuristic (based on vfs-type output) to try to determine the correct type to use. The deprecated functions and the new functions are all (re-)written in OCaml. There is no new test here, unfortunately. It would be nice to test Windows BitLocker support in this new API, however the Linux tools do not support creating BitLocker disks, and while it is possible to create one under Windows, the smallest compressed disk I could create is 37M because of a mixture of the minimum support size for BitLocker disks and the fact that encrypted parts of NTFS cannot be compressed. Also synchronise with common module.
This commit is contained in:
@@ -69,6 +69,7 @@ guestfs_gobject_headers= \
|
||||
include/guestfs-gobject/optargs-copy_file_to_device.h \
|
||||
include/guestfs-gobject/optargs-copy_file_to_file.h \
|
||||
include/guestfs-gobject/optargs-cpio_out.h \
|
||||
include/guestfs-gobject/optargs-cryptsetup_open.h \
|
||||
include/guestfs-gobject/optargs-disk_create.h \
|
||||
include/guestfs-gobject/optargs-download_blocks.h \
|
||||
include/guestfs-gobject/optargs-e2fsck.h \
|
||||
@@ -162,6 +163,7 @@ guestfs_gobject_sources= \
|
||||
src/optargs-copy_file_to_device.c \
|
||||
src/optargs-copy_file_to_file.c \
|
||||
src/optargs-cpio_out.c \
|
||||
src/optargs-cryptsetup_open.c \
|
||||
src/optargs-disk_create.c \
|
||||
src/optargs-download_blocks.c \
|
||||
src/optargs-e2fsck.c \
|
||||
|
||||
Reference in New Issue
Block a user