Skip to content

Show proportion of physical extents shared between two files

License

Notifications You must be signed in to change notification settings

pwaller/sharedextents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharedextents - show proportion of physical extents shared between two files

Discover when two files on a CoW filesystem share identical physical data.

Warning: Proof-of-concept. Alpha quality software, use at your own risk.

See Also:

  • fienode, for finding identical matches via a hash.
  • filefrag -v, for listing physical extents.

Installation

From source

go get github.com/pwaller/sharedextents

Binary Download

See releases.

Usage: sharedextents <a> <b>

For example:

$ sharedextents a b
1142734848 / 1679605760 bytes (68.04%)

# (note: files a and b share some physical extents)

Exit is status 0 if extents are shared between a and b, and 1 otherwise.

Caveats

There may be bugs. This will delete all your data and eat your cat. When it does, that is your problem. Keep backups, folks.

License

MIT.

About

Show proportion of physical extents shared between two files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages