nilfs_cpfile_change_cpmode(9)
π NAME π
nilfs_cpfile_change_cpmode β change checkpoint mode. This page is from the Kernel API Manual, and yes bestie, weβre changing a checkpoint mode today. π
β¨ SYNOPSIS β¨
int nilfs_cpfile_change_cpmode (struct inode *cpfile , __u64 cno , int
mode );
π ARGUMENTS π
cpfileβ inode of checkpoint file ποΈcnoβ checkpoint number π’modeβ mode of checkpoint ποΈ
π DESCRIPTION π
okay so nilfs_change_cpmode changes the mode of the checkpoint specified by cno. (Not me clocking that the name in this sentence is nilfs_change_cpmode while the page title is nilfs_cpfile_change_cpmode β Iβm just relaying the lore, donβt shoot the messenger ππ.)
The mode value is NILFS_CHECKPOINT or NILFS_SNAPSHOT. Thatβs the whole vibe check: checkpoint mode in, checkpoint mode changed. β¨
π₯ RETURN π₯
0 on success, or one of the following negative error codes on failure:
-EIOβ I/O error (including metadata corruption). π-ENOENTβ No such checkpoint. π-ENOMEMβ Insufficient memory available. π
π¦ SEE ALSO π¦
Kernel file ./fs/nilfs2/cpfile.c and these iconic little references, all of them, no cap:
nilfs_cpfile_checkpoint_offset(9)nilfs_cpfile_cp_snapshot_list_offset(9)nilfs_cpfile_ch_snapshot_list_offset(9)nilfs_cpfile_find_checkpoint_block(9)nilfs_cpfile_read_checkpoint(9)nilfs_cpfile_create_checkpoint(9)nilfs_cpfile_finalize_checkpoint(9)nilfs_cpfile_delete_checkpoints(9)nilfs_cpfile_get_cpinfo(9)nilfs_cpfile_delete_checkpoint(9)nilfs_cpfile_is_snapshot(9)nilfs_cpfile_get_stat(9)nilfs_cpfile_read(9)
thatβs the whole page, bestie β source stamp ./fs/nilfs2, date October 2026, for nilfs_cpfile_change_cpmode(9). go forth and change those checkpoint modes responsibly π«Άππ
π¦ 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