]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-disk: path_set_context() after rename()
authorKefu Chai <kchai@redhat.com>
Mon, 27 Nov 2017 08:35:56 +0000 (16:35 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 28 Nov 2017 06:55:33 +0000 (14:55 +0800)
commit1113ac255a8749d30c62e78b1711de1cd974db76
treedc98112ebaa82f86debe2b9f64bf02ad6b29d9b0
parentaa34321a4a74f29ef1efa63b5561aa4918ca4fb8
ceph-disk: path_set_context() after rename()

it does not matter if we chown/restorecon before or after the rename,
but the logging message looks better this way: instead of fixing the
.tmp files, we are updating the attributes of the dest files w/o
.${pid}.tmp extension.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph-disk/ceph_disk/main.py