| 597 | } |
| 598 | |
| 599 | int FileSystem::fgetxattr(FileHandle file, AttributeTag tag, void* buffer, size_t size) |
| 600 | { |
| 601 | CHECK_MOUNTED() |
| 602 | |
| 603 | auto smb = getMetaBuffer(file); |
| 604 | if(smb == nullptr) { |
| 605 | return Error::InvalidHandle; |
| 606 | } |
| 607 | return smb->getxattr(tag, buffer, size); |
| 608 | } |
| 609 | |
| 610 | int FileSystem::fenumxattr(FileHandle file, AttributeEnumCallback callback, void* buffer, size_t bufsize) |
| 611 | { |