]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: use partition type UUIDs, and blkid
authorSage Weil <sage@redhat.com>
Wed, 13 Aug 2014 00:25:10 +0000 (17:25 -0700)
committerSage Weil <sage@redhat.com>
Wed, 13 Aug 2014 00:25:10 +0000 (17:25 -0700)
commit6c77f5f2f994c881232d76ce9c69af80d10772bd
tree8fead6df2078ec4aa2d03a51b6b5f2a1a4b72392
parent1088d6cd11b476cd67ed30e07edd363c4057a003
ceph-disk: use partition type UUIDs, and blkid

Use blkid to give us the GPT partition type.  This lets us distinguish
between dmcrypt and non-dmcrypt partitions.  Fake it if blkid doesn't
give us what we want and try with sgdisk.  This isn't perfect (it can't
tell between dmcrypt and not dmcrypt), but such is life, and we are better
off than before.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-disk