]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: - is translated into / with systemd
authorLoic Dachary <ldachary@redhat.com>
Sun, 20 Sep 2015 12:03:39 +0000 (14:03 +0200)
committerLoic Dachary <ldachary@redhat.com>
Tue, 22 Sep 2015 06:46:56 +0000 (08:46 +0200)
commit6ca6653d33c638cd4649ceb31b2315f677555659
tree844e0d8c084b5f68f87237c99239a771a6330c70
parent17c6045773b818101ce6a52aad622bd3a37447ba
ceph-disk: - is translated into / with systemd

When running ceph-disk trigger /dev/dm-1 with systemd, the path name is
translated into /dev/dm/1 because of systemd escape rules. Explicitly
translate - into \x2d for systemd to preserve the -.

It would be better to use systemd-escape
http://www.freedesktop.org/software/systemd/man/systemd-escape.html
but it does not appear to be generally available on CentOS 7 and
probably other distributions.

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

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/ceph-disk