]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Add detection of FileVault2 partitions
authorMilan Broz <gmazyland@gmail.com>
Mon, 12 Dec 2022 15:45:15 +0000 (16:45 +0100)
committerMilan Broz <gmazyland@gmail.com>
Mon, 12 Dec 2022 18:08:44 +0000 (19:08 +0100)
commit773a1fe3f14e55309bc066dfea183cb750bd1684
tree21134970b5b512816459099dc278be26e5690e56
parent5099e004b486e7c4f7153abc9843f49c1593fe66
libblkid: Add detection of FileVault2 partitions

FileVault is full disk encryption format based on Apple
Core Storage, used in older macOS versions.

This patch allows automatic detection of Core Storage partition
to be later used with existing cryptsetup support for FileVault2.

Note that we intentionally ignore generic Core Storage; only
specific configuration is detected as cs_fvault2 type here.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
libblkid/meson.build
libblkid/src/Makemodule.am
libblkid/src/superblocks/cs_fvault2.c [new file with mode: 0644]
libblkid/src/superblocks/superblocks.c
libblkid/src/superblocks/superblocks.h
tests/expected/blkid/low-probe-cs_fvault2 [new file with mode: 0644]
tests/ts/blkid/images-fs/cs_fvault2.img.xz [new file with mode: 0644]