]> git.proxmox.com Git - mirror_zfs.git/commit
Improve partition detection on lesser used devices
authorRichard Yao <ryao@gentoo.org>
Thu, 9 Jan 2014 17:52:10 +0000 (12:52 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Apr 2014 21:45:12 +0000 (14:45 -0700)
commit787c455ed7a519bbf2e56140621259eb7b23b6fb
treef4733e9d9999e0169114a050cd5e89deb0866553
parentb79e1f1f27e72e0603beb176c9d8e4c78bc62c95
Improve partition detection on lesser used devices

The format strings in efi_get_info() are intended to extract both the
main device and partition number. However, this is only done correctly
for hd, sd and vd devices. The format strings for ram, dm-, md and loop
devices misparse the input. This causes the partition device to be
incorrectly labelled as the main device with the partition being
labelled 0.

Reported-by: ilovezfs <ilovezfs@icloud.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2175
lib/libefi/rdwr_efi.c