-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upspinfs: corrects link size handling
Correctly reports the symlink size as the size of the content printed out by Readlink. Old code reported size 0 for symlinks. This is correct per upspin specification, but not correct when upspin is viewed through a filesystem mount. Reporting incorrect size led to weird artifacts when using git on top of upspinfs, as git would interpret file size of 0 as file content removal, and would generate spurious diffs. Fixes #619. Change-Id: I17d3ebd04998f7167d060cb90256936a75cc8d7f Reviewed-on: https://upspin-review.googlesource.com/c/upspin/+/19280 Reviewed-by: David Presotto <presotto@gmail.com>
- Loading branch information
Showing
3 changed files
with
43 additions
and
8 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