]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: do link/rename semantic checks after srcdn is readable 17768/head
authorYan, Zheng <zyan@redhat.com>
Sun, 17 Sep 2017 08:51:04 +0000 (16:51 +0800)
committerYan, Zheng <zyan@redhat.com>
Sun, 17 Sep 2017 08:59:08 +0000 (16:59 +0800)
commit46962b253563a867707e7c5d7887abf2060cc4d7
treed0e93004651f427b811e00d6cfb74c48d34665cb
parentcd6a312a4f664f96bdf464c113773aa19d8bcf4a
ceph: do link/rename semantic checks after srcdn is readable

For hard link, source inode must not be directory. For rename,
types of source/destination inodes must match. If srcdn is replica
and we do these checks while it's not readble, it's possible that
wrong source inode is used in these checks.

Fixes: http://tracker.ceph.com/issues/21383
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Server.cc