STRUCT UBI_RSVOL_REQ(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms