]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix directory fsync 5294/head
authorYan, Zheng <zyan@redhat.com>
Mon, 20 Jul 2015 08:46:39 +0000 (16:46 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 21 Jul 2015 02:23:29 +0000 (10:23 +0800)
commit613f5481692768f14499e3b173361743d5f9253b
treee1559001e58e168ac36fae35305e4dbd182937ac
parent64d37b70a687eb63edf69a91196bb124651da210
client: fix directory fsync

When opening a regular file, fuse assigns a 'struct Fh' pointer to
fuse_file_info::fh. but when openning a directory, fuse assigns a
'struct dir_result_t' to fuse_file_info::fh. So we need a seperate
function for fsyncdir (cast fuse_file_info::fh to a struct
dir_result_t pointer)

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