BTRFS-MAP-LOGICAL(8)
π BTRFS-MAP-LOGICAL β the manual page, but make it make sense π
okay bestie, so this is btrfs-map-logical, part of the btrfs squad, section 8 of the manual (that's the "system admin commands" section, iykyk). She's a lil toolkit utility whose whole entire job is translating btrfs logical extents into physical extents. That's it. That's the girl. β¨
πΈ NAME πΈ
btrfs-map-logical β map a btrfs logical extent to a physical extent πΊοΈπ«
π SYNOPSIS π
btrfs-map-logical <options> <device>
π¦ DESCRIPTION π¦
so basically? btrfs-map-logical figures out what the physical offsets are on the mirrors. and by "figures out" I mean she dumps the result to stdout by default. no drama, no fuss, just numbers on your screen. π
she's mainly used for debug purposes β like, this is not a "run it every morning with your coffee" kind of tool, she's a "your filesystem is acting up and you need to peer behind the curtain" kind of tool. π§
β¨ OPTIONS β¨
-l,--logical <logical_num>β the logical extent you want to map. give her the number, she'll do the translating. π’-c,--copy <copy>β which copy of the extent to read. usually that's1or2, because btrfs keeps mirrors like a responsible queen. π-o,--output <filename>β an output file to hold the extent. if you'd rather she write it somewhere instead of just telling you, this is your moment. π-b,--bytes <bytes>β how many bytes to read. you decide the size, she respects it. π
π EXIT STATUS π
btrfs-map-logical returns 0 if nothing bad happened. if any problems happened β and you'll know β she returns 1. that's the whole mood scale, bestie, it's binary. π
π₯ SEE ALSO π₯
mkfs.btrfs(8) <> β go make a filesystem, you icon. π
fr fr, this one is a debug tool, so treat her like one. nothing mysterious, nothing fancy, just logical β physical with receipts. π
and that's the page, no cap. this lil writeup is from btrfs version 7.3, dated Oct 24, 2026, and yes she's still BTRFS-MAP-LOGICAL(8) in the header where she lives. slay, go map some extents. π«Άβ¨
π¦ where this page comes from
- arch rolling: btrfs-progs 7.3-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms