]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph: do link/rename semantic checks after srcdn is readable 17888/head
authorYan, Zheng <zyan@redhat.com>
Sun, 17 Sep 2017 08:51:04 +0000 (16:51 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 Sep 2017 13:43:56 +0000 (15:43 +0200)
commitf09786d2940ca5532f6f59464be4fdf29a4d75b3
treebcdc4685c1e6f7f872dd3577dfdcb1b407c268a6
parent0132a275aa86ca80bf1dcacd9905243257317e6c
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>
(cherry picked from commit 46962b253563a867707e7c5d7887abf2060cc4d7)
src/mds/Server.cc