nilfs_ioctl_set_fslabel(9)
π NAME π
Okay so bestie, nilfs_ioctl_set_fslabel is literally the function that sets the volume name of the file system. We're in the Kernel API Manual, reading nilfs_ioctl_set_fslabel(9), and it's giving "rename your filesystem, but make it kernel business." β¨
β¨ SYNOPSIS β¨
Here's the signature, exactly as it appears β no edits, no cap:
int nilfs_ioctl_set_fslabel (struct super_block *sb , struct file *filp
, void __user *argp );
π ARGUMENTS π
The cast, in order:
sbβ super block instance. That's the sb super block instance, main character energy. πfilpβ file object. yep, the filp is here too.argpβ pointer to userspace memory that contains the volume name. That's where the volume name lives in userspace. π«Ά
π₯ RETURN π₯
It returns 0 on success, or one of the following negative error codes on failure. Negative = not the vibe, bestie. π
-EFAULTβ Error copying input data.-EINVALβ Label length exceeds record size in superblock.-EIOβ I/O error.-EPERMβ Operation not permitted (insufficient permissions).-EROFSβ Read only file system.
π¦ SEE ALSO π¦
The kernel file is ./fs/nilfs2/ioctl.c, and here's the whole squad β every single ref, no skipping:
nilfs_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_get_fslabel(9)
β from ./fs/nilfs2, dated October 2026. byeee, go set that volume name π
π¦ 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