forked from restic/restic
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuse: Report fuse.Attr.Blocks correctly
Fixes restic#4239.
- Loading branch information
Showing
5 changed files
with
45 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Bugfix: Correct number of blocks reported in mount point | ||
|
||
Restic mount points incorrectly reported the number of 512-byte (POSIX | ||
standard) blocks for files and links, due to a rounding bug. In particular, | ||
empty files were reported as taking one block instead of zero. | ||
|
||
The rounding is now fixed: the number of blocks reported is the file size | ||
(or link target size), divided by 512 and rounded up to a whole number. | ||
|
||
https://github.com/restic/restic/issues/4239 | ||
https://github.com/restic/restic/pull/4240 |
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
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