check_volume_empty(9)
π check_volume_empty(9)
okay so this page is from the Kernel API Manual, and itβs literally all about check_volume_empty(9) β the function that checks if the UBI volume is empty. bestie, letβs get into it π
πΈ NAME
check_volume_empty β check if the UBI volume is empty.
β¨ SYNOPSIS
int check_volume_empty (struct ubifs_info *c );
π ARGUMENTS
cβ UBIFS file-system description object
π¦ DESCRIPTION
So the vibe is this: this function checks if the UBIFS volume is empty by looking at whether its LEBs are mapped or not. iconic behavior, honestly β¨
The result of that checking is stored in the c->empty variable. no cap, thatβs where it lives.
It returns 0 in case of success and a negative error code in case of failure. success is zero, failure is negative β periodt π
π SEE ALSO
Kernel file ./fs/ubifs/super.c is the main character here, and these besties are linked too:
validate_inode(9)init_constants_early(9)bud_wbuf_callback(9)take_gc_lnum(9)alloc_wbufs(9)free_wbufs(9)free_orphans(9)free_buds(9)ubifs_parse_param(9)destroy_journal(9)bu_init(9)check_free_space(9)mount_ubifs(9)ubifs_umount(9)ubifs_remount_rw(9)ubifs_remount_ro(9)open_ubi(9)
cute lil sign-off: this pageβs source/version is ./fs/ubifs, dated October 2026, for check_volume_empty(9) π«Άβ¨
π¦ 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