Based on the block device type we can expect a specific naming convention. With this in mind update efi_get_info() to be more aware of the type when parsing out the partition number. In, addition be aware that all block device types are not partitionable. Finally, when attempting to lookup a device partition by appending the partition number to the whole device take in to account the kernel naming scheme. If the last character of the device name is a digit the partition will always be 'p#' instead of just '#'. |
||
---|---|---|
.. | ||
include | ||
Makefile.am | ||
libzfs_changelist.c | ||
libzfs_config.c | ||
libzfs_dataset.c | ||
libzfs_graph.c | ||
libzfs_import.c | ||
libzfs_mount.c | ||
libzfs_pool.c | ||
libzfs_sendrecv.c | ||
libzfs_status.c | ||
libzfs_util.c |