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's 1 or 2, 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