-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
previously, this will fail if /mnt/file doesn't have an xattr: ``` listxattr("/mnt/file", 0x7fe8b3686830, 256) = -1 EIO (Input/output error) ``` We should be returning the actual size only if the input size is zero. Related issue is if the filesystem returns ERANGE, we should propagate that error instead of returning the actual size. Replaced go-xattr usage with x/sys/unix so we can test this.
- Loading branch information
1 parent
4ee1cf7
commit e7bcad2
Showing
3 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters