mirror of
https://github.com/borgbackup/borg.git
synced 2026-03-24 03:15:08 -04:00
hlfuse: fix getxattr, raise ENOATTR
This commit is contained in:
parent
7278a1d5fc
commit
ee2fcefcb8
1 changed files with 4 additions and 3 deletions
|
|
@ -13,8 +13,9 @@ if TYPE_CHECKING:
|
|||
# For type checking, assume mfusepy is available
|
||||
# This allows mypy to understand hlfuse.Operations
|
||||
import mfusepy as hlfuse
|
||||
from .fuse_impl import ENOATTR
|
||||
else:
|
||||
from .fuse_impl import hlfuse
|
||||
from .fuse_impl import hlfuse, ENOATTR
|
||||
|
||||
from .logger import create_logger
|
||||
|
||||
|
|
@ -583,8 +584,8 @@ class borgfs(hlfuse.Operations, FuseBackend):
|
|||
debug_log(f"getxattr -> {len(result)} bytes")
|
||||
return result
|
||||
except KeyError:
|
||||
debug_log("getxattr -> ENODATA")
|
||||
raise hlfuse.FuseOSError(errno.ENODATA) from None
|
||||
debug_log("getxattr -> ENOATTR")
|
||||
raise hlfuse.FuseOSError(ENOATTR) from None
|
||||
|
||||
def open(self, path, fi):
|
||||
debug_log(f"open(path={path!r}, fi={fi})")
|
||||
|
|
|
|||
Loading…
Reference in a new issue