]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk-activate: Unmount on errors (if it did the mount).
authorTommi Virtanen <tv@inktank.com>
Tue, 2 Oct 2012 23:37:07 +0000 (16:37 -0700)
committerTommi Virtanen <tv@inktank.com>
Fri, 5 Oct 2012 22:43:18 +0000 (15:43 -0700)
commitce5e1f8dfaa8675b0a1e9fa22ebf91be9652aa01
tree0194033df4ad6a11a26df8f1690a9fe6ad1d98c0
parentda86e4e43676ceaf0b39635954489c297de88025
ceph-disk-activate: Unmount on errors (if it did the mount).

This cleans up the error handling to not leave disks mounted
in /var/lib/ceph/tmp/mnt.* when something fails, e.g. when
the ceph command line tool can't talk to mons.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/ceph-disk-activate