nilfs_ioctl_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: 🧚

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