]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: fix regression in cciss devices names
authorLoic Dachary <ldachary@redhat.com>
Tue, 5 Jan 2016 16:42:11 +0000 (17:42 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 Jan 2016 10:13:16 +0000 (11:13 +0100)
commit17430d0cf90f616cce33da80a30cc14c7f989f8b
tree4aa045a4de62419ef527347a5f285ab8a3f1e379
parent35a0c94c4cd3a57cfc382c64eaa9cfb9306dd2e6
ceph-disk: fix regression in cciss devices names

The cciss driver has device paths such as /dev/cciss/c0d1 with a
matching /sys/block/cciss!c0d1. The general case is that whenever a
device name is found in /sys/block, the / is replaced by the !.

When refactoring the ceph-disk list subcommand, this conversion was
overlooked in a few places. All explicit concatenation of /dev with a
device name are replaced with a call to get_dev_name which does the same
but also converts all ! in /.

http://tracker.ceph.com/issues/13970 Fixes: #13970

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