]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: rework get_partition_{type,uuid}
authorLoic Dachary <ldachary@redhat.com>
Mon, 17 Aug 2015 22:04:32 +0000 (00:04 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 29 Aug 2015 00:37:51 +0000 (02:37 +0200)
commita10141809c41ec3cc4d89803cf346acf4913d83e
treedbfe6cf2d9a30cc73042dae5611165428fb6e207
parent77ff7c3dc6dd6861b094e5a53d329de0802f3032
ceph-disk: rework get_partition_{type,uuid}

Mimic the get_partition_type implementation after get_partition_uuid
and factorize them to reduce the code footprint.

The get_partition_type implementation is based on blkid: it is complex
and fragile. Since sgdisk is consistently used to create partitions, use
it instead. It is already used for get_partition_uuid and there does not
seem to be any reason for concern.

http://tracker.ceph.com/issues/11881 Refs: #11881

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk