ubi_resize_volume(9)
π ubi_resize_volume(9) π
okay so bestie, welcome to the Kernel API Manual entry for ubi_resize_volume β yes it's a section 9 page, yes it's iconic, let's get into it π
β¨ NAME β¨
ubi_resize_volume β re-size volume. that's it. that's the whole vibe. glow-up for your volume, no cap π
πΈ SYNOPSIS πΈ
int ubi_resize_volume (struct ubi_volume_desc *desc , int reserved_pebs
);
like literally that's the whole signature. look at her go β¨
π¦ ARGUMENTS π¦
descβ the volume descriptor, i.e. your lil VIP pass to the volume you're about to glow up π«Άreserved_pebsβ the new size, measured in physical eraseblocks. yes physical eraseblocks. that's the unit. periodt.
π₯ DESCRIPTION π₯
so what does she actually do? ubi_resize_volume re-sizes the volume π
and then:
- returns zero on success β slay, ate, no notes
- returns a negative error code if it fails π it's giving "not every resize is a main character"
β οΈ ok important bestie, do NOT skip this: the caller has to have the ubi->device_mutex locked. locked. as in, you gotta hold it before you call this. not optional, not a suggestion, fr fr π
π SEE ALSO π
go read the kernel file ./drivers/mtd/ubi/vmt.c (yes, literally that path, iykyk π§) and then check out her whole friend group:
ubi_create_volume(9)ubi_remove_volume(9)ubi_rename_volumes(9)ubi_add_volume(9)ubi_free_volume(9)self_check_volume(9)self_check_volumes(9)
π lowkey reminder that this whole page lives in the kernel source tree at ./drivers/mtd/ubi β that's the source/version vibe
okay bye bestie, go resize something responsibly, and remember: lock that mutex first ππ
β§ο½₯οΎ: * ubi_resize_volume(9) β Kernel API Manual β October 2026 * :οΎο½₯β§ ππ¦πΈ
π¦ 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