]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fuse: improve error handling in fuse_ll_getattr 64701/head
authorizxl007 <zeng.zheng@zte.com.cn>
Sat, 26 Jul 2025 15:30:16 +0000 (23:30 +0800)
committerizxl007 <zeng.zheng@zte.com.cn>
Sat, 26 Jul 2025 15:30:16 +0000 (23:30 +0800)
commitc0dd7cbb785349482e9f687001466ac84ed0b77b
tree56fa914d442643905790cd169ee5df3a13c6aba0
parent5abc34b8658517e473864cd8f95e6009393c0d64
fuse: improve error handling in fuse_ll_getattr

Currently, fuse_ll_getattr always returns ENOENT when ll_getattr fails,
which masks the actual error conditions. This makes debugging and error
handling difficult for applications using ceph-fuse.

This change preserves the original error code from ll_getattr and converts
it to the appropriate system error code using get_sys_errno(), allowing
applications to receive accurate error information.

Signed-off-by: izxl007 <zeng.zheng@zte.com.cn>
src/client/fuse_ll.cc