]> git.proxmox.com Git - mirror_zfs.git/commit
Ext4's typical GPT partition type not recognized
authorilovezfs <ilovezfs@icloud.com>
Sun, 22 Nov 2015 12:06:21 +0000 (04:06 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Dec 2015 17:27:00 +0000 (09:27 -0800)
commit917b8c5cec074869a0bf4e9956b7d24f14221d84
tree52e6949083e0d0a679021e03b4c0fe409c298cdd
parentfc80384923dde365ad40c6b6f5a7daa3e556b1e5
Ext4's typical GPT partition type not recognized

Adding additional entries to the efi conversion array will help prevent
the overwriting of the GPTs of disks with in-use file systems in more
cases. Most notably, this adds partition type 8300 "Linux filesystem"
(0FC63DAF-8483-4772-8E79-3D69D8477DE4), which is often used for ext4 and
btrfs, among others.

This commit itself does nothing to address the underlying problematic
behavior that check_slice() isn't called on partitions of an
unrecognized type, even when they contain a currently mounted file
system.

The additional entries were derived from these two resources:
https://en.wikipedia.org/wiki/GUID_Partition_Table
http://sourceforge.net/p/gptfdisk/code/ci/master/tree/parttypes.cc

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #4016
include/sys/efi_partition.h
lib/libefi/rdwr_efi.c