Bug 217068 - Command to determine that two files are identical reflinks of each other
Summary: Command to determine that two files are identical reflinks of each other
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: BTRFS virtual assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-21 21:04 UTC by John Wiersba
Modified: 2023-02-21 21:04 UTC (History)
0 users

See Also:
Kernel Version: 5.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description John Wiersba 2023-02-21 21:04:41 UTC
Btrfs/xfs needs a way to identify reflinked files.  If I run a user-level command, say btrfs-id FILE, it returns a string containing an identifier.  If I then run btrfs-id ANOTHER_FILE and find that the two outputs are identical, then I know that FILE and ANOTHER_FILE are "identical" reflinked files.  This would be similar in concept to using dev/ino to identify file content in ext4.

Note You need to log in before you can comment on or make changes to this bug.