btrfs-extent-same(8)

πŸ“¦
version 0.15.2 Β· 2 versions
, in alpine 3.24, arch rolling, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ’– btrfs-extent-same(8) β€” System Manager's Manual πŸ’–

okay bestie, pull up a chair, because this little tool from the btrfs family is short but iconic β€” it's btrfs-extent-same, and yes, it's exactly what it sounds like. πŸ¦‹


✨ NAME ✨

btrfs-extent-same β€” directly access the FIDEDUPRANGE ioctl πŸ’…


🌸 SYNOPSIS 🌸

btrfs-extent-same extent-len file1 offset1 file2 offset2 [...]

πŸŽ€ DESCRIPTION πŸŽ€

so basically, btrfs-extent-same is a lil wrapper around the FIDEDUPRANGE ioctl β€” like, it's the friendly face on the syscall, the group-chat translator for the kernel, yk? 🫢

ngl there's one thing you absolutely have to remember: extent-len and all the offsets should be specified in bytes. bytes, bestie. not blocks, not vibes. bytes. 😭


🌈 SEE ALSO 🌈


and that's the whole page, no cap πŸ’œ this one's from the btrfs-extent-same manual, dated March 2014 β€” shoutout to the System Manager's Manual era, she ate and left no crumbs. πŸ‘‘βœ¨ go dedupe some extents, you main character. πŸŽ€πŸ’–