nilfs_ioctl_get_fslabel(9)
π nilfs_ioctl_get_fslabel β get the volume name of the file system
okay so picture this: it's a kernel API manual page, section 9, and it's literally called nilfs_ioctl_get_fslabel(9). bestie, this is the little function whose whole entire job is grabbing the volume name of a nilfs file system and handing it over to userspace. that's it. that's the gig. and it does it flawlessly, no notes. π
β¨ SYNOPSIS β¨
int nilfs_ioctl_get_fslabel (struct super_block *sb , void __user *argp
);
like yes, that's the whole signature, she's compact and she's iconic π«Ά
πΈ ARGUMENTS πΈ
sbβ the super block instance π this is the file system's main character, the one whose volume name we're here to snatchargpβ pointer to userspace memory where the volume name should be stored β¨ so like, this is the destination, the drop-off spot, the place the name is gonna live once we're done
β RETURN β
0on success β slay, we did it, the name is delivered π-EFAULTif copying to userspace memory fails π like the copy just didn't land, tragic, but it's a real error and that's what you get back
π¦ SEE ALSO π¦
the whole nilfs2 friend group, no cap, everyone's here:
- Kernel file
./fs/nilfs2/ioctl.cnilfs_ioctl_wrap_copy(9) nilfs_fileattr_get(9)nilfs_fileattr_set(9)nilfs_ioctl_getversion(9)nilfs_ioctl_change_cpmode(9)nilfs_ioctl_delete_checkpoint(9)nilfs_ioctl_do_get_cpinfo(9)nilfs_ioctl_get_cpstat(9)nilfs_ioctl_do_get_suinfo(9)nilfs_ioctl_get_sustat(9)nilfs_ioctl_do_get_vinfo(9)nilfs_ioctl_do_get_bdescs(9)nilfs_ioctl_get_bdescs(9)nilfs_ioctl_move_inode_block(9)nilfs_ioctl_move_blocks(9)nilfs_ioctl_delete_checkpoints(9)nilfs_ioctl_free_vblocknrs(9)nilfs_ioctl_mark_blocks_dirty(9)nilfs_ioctl_clean_segments(9)nilfs_ioctl_sync(9)nilfs_ioctl_resize(9)nilfs_ioctl_trim_fs(9)nilfs_ioctl_set_alloc_range(9)nilfs_ioctl_get_info(9)nilfs_ioctl_set_suinfo(9)nilfs_ioctl_set_fslabel(9)
and yeah, if you clocked that nilfs_ioctl_set_fslabel(9) sitting at the end of that list β that's her counterpart, the setter to this getter. iykyk π
okay that's the whole page, go forth and read your volume names π
source on this one is ./fs/nilfs2, dated October 2026, and the page answers to nilfs_ioctl_get_fslabel(9) β mwah, 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