]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk-prepare: assume parted failure means no partition table
authorSage Weil <sage@inktank.com>
Fri, 26 Oct 2012 01:14:47 +0000 (18:14 -0700)
committerSage Weil <sage@inktank.com>
Tue, 30 Oct 2012 17:40:58 +0000 (10:40 -0700)
commit8921fc7c7bc28fb98334c06f1f0c10af58085085
tree265be3da09fe2c5031c1f34f39298d0d4ef890a3
parentb9eccdf8ba100c847b3ae837e3ef247db991c49d
ceph-disk-prepare: assume parted failure means no partition table

If the disk has no valid label we get an error like

  Error: /dev/sdi: unrecognised disk label

Assume any error we get is that and go with an id label of 1.

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