]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: dereference symlinks in destroy and zap
authorLoic Dachary <ldachary@redhat.com>
Wed, 16 Dec 2015 14:57:03 +0000 (15:57 +0100)
committerLoic Dachary <ldachary@redhat.com>
Mon, 21 Dec 2015 10:31:25 +0000 (11:31 +0100)
commitfe71647bc9bd0f9ddc6d470ee7bee1e6b0983e2b
tree6810253122e3b00f4b8d5a95322a4b6c7e788997
parent730b5d62d3cda7de4076bafa6e9e35f1eb8e2190
ceph-disk: dereference symlinks in destroy and zap

The behavior of partprobe or sgdisk may be subtly different if given a
symbolic link to a device instead of an actual device. The debug output
is also more confusing when the symlink shows instead of the device it
points to.

Always dereference the symlink before running destroy and zap.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk