nilfs_ioctl_sync(9)
π
nilfs_ioctl_sync(9) β Kernel API Manual, but make it cute: βmake a checkpointβ β¨
πΈ NAME πΈ
okay so bestie, nilfs_ioctl_sync is literally the function that makes a checkpoint. Thatβs the whole name, no cap. π
β¨ SYNOPSIS β¨
the signature is giving:
int nilfs_ioctl_sync (struct inode *inode , struct file *filp , unsigned
int cmd , void __user *argp );
π¦ ARGUMENTS π¦
inodeβ the inode object. yes, that one. πfilpβ the file object. π«Άcmdβ the ioctlβs request code. βargpβ pointer on argument from userspace. π
π DESCRIPTION π
So nilfs_ioctl_sync constructs a logical segment for checkpointing. The way it works is lowkey iconic: this function guarantees that all modified data and metadata are written out to the device when it successfully returned. Yes bestie β all of it, data and metadata, both. π
β¨ That guarantee is the main character energy of this whole function.
π₯ RETURN π₯
0 on success, or one of the following negative error codes on failure: π
-EFAULTβ Failure during execution of requested operation.-EIOβ I/O error.-ENOMEMβ Insufficient memory available.-ENOSPCβ No space left on device (only in a panic state).-ERESTARTSYSβ Interrupted.-EROFSβ Read only filesystem.
π SEE ALSO π
Kernel file ./fs/nilfs2/ioctl.c is in the chat, and these besties are linked too: π§
- Kernel file
./fs/nilfs2/ioctl.c 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_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)nilfs_ioctl_set_fslabel(9)
Bye bestie π«Ά β this page comes from the Kernel API Manual, source ./fs/nilfs2, dated October 2026, and itβs all about nilfs_ioctl_sync(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