Commit c0dd7cb
committed
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 <[email protected]>1 parent 5abc34b commit c0dd7cb
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
| 399 | + | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
| |||
0 commit comments