gluebi_resized(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gluebi_resized(9) β€” a Kernel API Manual moment

okay bestie, welcome to gluebi_resized, straight out of the Kernel API Manual. it's a notifier, it's iconic, it's giving "UBI volume was re-sized" energy, and we're gonna get into it. ✨


🌸 NAME 🌸

gluebi_resized β€” the UBI volume was re-sized notifier. that's the whole vibe. when a volume gets resized, this lil function is the one tapping you on the shoulder like "hey. bestie. things changed." 🫢


✨ SYNOPSIS ✨

int gluebi_resized (struct ubi_volume_info *vi );

literally that's it. one function, one argument, one int coming back at you. slay. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • vi β€” the volume info structure. that's the whole description, no cap. it's the struct ubi_volume_info * and it's carrying the volume info. main character energy fr fr. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“: this function gets called every single time an UBI volume is re-sized. every. time. it's not a sometimes thing, it's a whole lifestyle.

and what does it actually do? it changes the corresponding fake MTD device size, so the fake MTD stays in sync with whatever the volume just became. lowkey important, highkey underrated. 🧚

on the return side of things: this function returns zero in case of success, and a negative error code in case of error. so like, 0 = we ate, negative = something went sideways and you should probably look at it. 😭


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/mtd/ubi/gluebi.c, and honestly the whole gluebi friend group is here:

go read them all, iykyk, they're all part of the same little ecosystem and they all slay in their own way. πŸ”₯


fr fr reminder: gluebi_resized is the re-size notifier. every re-size, it fires, it updates that fake MTD device size, and it hands you back 0 or a negative error code. no guessing, that's literally the spec. πŸ’–

and that's the page, bestie! πŸŽ€ this came to you from ./drivers/mtd/ubi, dated October 2026, and it's filed under gluebi_resized(9) in the Kernel API Manual. periodt. πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from