]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk-prepare: refactor to support DIR, DISK, or PARTITION for data or journal
authorSage Weil <sage@inktank.com>
Sun, 27 Jan 2013 03:08:22 +0000 (19:08 -0800)
committerSage Weil <sage@inktank.com>
Wed, 13 Feb 2013 20:39:34 +0000 (12:39 -0800)
commitb2ff6e8c9d96dee2c063b126de7030a5c2ae0d02
tree3f63431d9d53b1c9377da61c847dceddaba3b033
parent191d5f7535f8d96d493e1b35b43a421c67c168ea
ceph-disk-prepare: refactor to support DIR, DISK, or PARTITION for data or journal

Lots of code reorganization collapsed into a single commit here.

- detect whether the user gave us a directory, disk, or partition, and Do The
Right Thing
- allow them to force that the input was of type X, for the careful/paranoid.
- make --zap-disk an option -- no longer the default

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