]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cient/fuse_ll.c: align fuse_ll_forget() with fuse3 API 38930/head
authorVladimir Bashkirtsev <vladimir@bashkirtsev.com>
Sat, 16 Jan 2021 02:32:37 +0000 (13:02 +1030)
committerVladimir Bashkirtsev <vladimir@bashkirtsev.com>
Sat, 16 Jan 2021 06:35:19 +0000 (17:05 +1030)
commit3640e14e0010975928c9b6d3440b1aaea2e129c8
tree2bba6c25a3017cf3090e16abaaf0813b82476c26
parent3ab480728157e12deeea201e5f940748307c604f
cient/fuse_ll.c: align fuse_ll_forget() with fuse3 API

In fuse2 forget() is defined as:

void (*forget) (fuse_req_t req, fuse_ino_t ino, unsigned long nlookup);

In fuse3 forget() is defined as:

void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);

Apparently FUSE fixed the issue of nlookup becoming 32 bit value on 32 bit systems as nlookup should be 64 bit value at all times.

We should use new function signature to avoid compilation failure in 32 bit mode with fuse3.

Signed-off-by: Vladimir Bashkirtsev <vladimir@bashkirtsev.com>
src/client/fuse_ll.cc