STRUCT UBI_RSVOL_REQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ubi_rsvol_req(9) ✨

okay so this is a page from the Kernel API Manual and it's literally all about one tiny struct, but she is iconic and she has a job, so let's give her the respect she deserves πŸ’…


πŸŽ€ NAME πŸŽ€

struct ubi_rsvol_req β€” a data structure used in volume re-size requests.

like, that's her whole thing. that's the vibe. re-size requests, but make it struct πŸ¦‹


✨ SYNOPSIS ✨

struct ubi_rsvol_req {
    __s64 bytes;
    __s32 vol_id;
 };

two members. that's it. she's lowkey minimal and that's why we stan 🫢


🌸 Members 🌸

  • bytes β€” the new size of the volume, in bytes. yes, bytes. the unit is bytes. we love a self-documenting field name ngl πŸ’–
  • vol_id β€” the ID of the volume you're re-sizing. gotta know which one, bestie, no cap 🎯

πŸ’œ Description πŸ’œ

so here's the tea β˜• β€” re-sizing is possible for both dynamic and static volumes. both! equal opportunity re-sizing! but there's a catch, because of course there's a catch:

  • dynamic volumes may be re-sized arbitrarily β€” go off, queen, stretch and squeeze however you want πŸ”₯
  • static volumes cannot be made to be smaller than the number of bytes they bear. periodt. that's the floor, that's the limit, that's the line πŸ’€
and if you really want to arbitrarily shrink a static volume? you can't just do it. it must be wiped out first β€” by means of volume update operation with zero number of bytes. zero. zilch. nada. that's the only way, iykyk 😭

🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/mtd/ubi-user.h
  • struct ubi_attach_req(9)
  • struct ubi_mkvol_req(9)
  • struct ubi_rnvol_req(9)
  • struct ubi_ecinfo_req(9)
  • struct ubi_leb_change_req(9)
  • struct ubi_map_req(9)
  • struct ubi_set_vol_prop_req(9)
  • struct ubi_blkcreate_req(9)

the whole friend group!! go read their pages too, they're all serving in ./include/uapi/mtd πŸ’«


mwah, that's the whole page 🧚 source is ./include/uapi/mtd, dated October 2026, and yes she slayed. bye bestie!! πŸ’–πŸ‘‘

πŸ“¦ where this page comes from