forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfs: fix hard link names in String()
This change fixes a bug in MemFS dump printer, as well as an incorrect "logical" ownwership structure. Files that are hard linked to the same node incorrectly print the same file name (matching the name of the file which created the node). This is due to the fact that we store the file name in memNode. Instead, we should allow the same memNode to be used under different names. To fix it, this commit moves the name field from memNode to memFile.
- Loading branch information
Showing
2 changed files
with
17 additions
and
34 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