]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tasks/ceph: restore context of osd mount path before mkfs
authorKefu Chai <kchai@redhat.com>
Fri, 9 Dec 2016 18:36:52 +0000 (02:36 +0800)
committerSage Weil <sage@redhat.com>
Wed, 14 Dec 2016 15:57:34 +0000 (10:57 -0500)
commit87e0299448908775600c62130617bad503027768
tree5f5d5acb14ff98a3543f1866e4478bd5bc89bda8
parentca933160bec3532a5b2846fc7e684f11509c8298
tasks/ceph: restore context of osd mount path before mkfs

all newly created files and directories under the mount dir inherit the
SELinux type of their parent directory. so we need to set it before
mkfs.

Fixes: http://tracker.ceph.com/issues/16800
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 53225d5272a1d35d4183fcfa55a139f55f77e122)
tasks/ceph.py