]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix root inode number for fuse 7976/head
authorYan, Zheng <zyan@redhat.com>
Tue, 8 Mar 2016 14:46:31 +0000 (22:46 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 8 Mar 2016 23:57:40 +0000 (07:57 +0800)
commit79e2f189c7fab0cd5781610bafee2a47b41dec9d
tree59a4a6b942ee2ce5fed5bbf354e855c83e5c30f7
parent2c23b6a9d3da77a8ea423b9e578a4f2cfc1f8d3d
client: fix root inode number for fuse

fuse assigns a fix inode number (FUSE_ROOT_ID) for root inode
(FUSE_ROOT_ID is usually equal to MDS_INO_ROOT). But in the mount
into sub-directory case, FUSE_ROOT_ID is not equal to inode number
of the real mount root. This mismatch can confuse getattr and
fuse_lowlevel_notify_foo() functions.

Fixes: #15008
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/fuse_ll.cc