nilfs_sufile_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_sufile_resize πŸ’…

okay bestie, welcome to the Kernel API Manual β€” today’s main character is nilfs_sufile_resize(9), and she is literally here to resize the segment array. no cap. πŸ¦‹

🌸 NAME 🌸

nilfs_sufile_resize β€” resize segment array. πŸ’–

✨ SYNOPSIS ✨

int nilfs_sufile_resize (struct inode *sufile , __u64 newnsegs );

πŸŽ€ ARGUMENTS πŸŽ€

  • sufile β€” inode of segment usage file. yes bestie, that exact inode.
  • newnsegs β€” new number of segments. the fresh count, slay.

πŸ”₯ RETURN πŸ”₯

0 on success, or one of the following negative error codes on failure β€” keep these on your radar, fr fr:

  • -EBUSY β€” Dirty or active segments exist in the region to be truncated.
  • -EIO β€” I/O error (including metadata corruption).
  • -ENOMEM β€” Insufficient memory available.
  • -ENOSPC β€” Enough free space is not left for shrinking.

🫢 SEE ALSO 🫢

go read these next, iykyk: ✨


made with πŸ’– from the ./fs/nilfs2 source tree β€” October 2026 β€” and this cutie is nilfs_sufile_resize(9). periodt. πŸŽ€

πŸ“¦ where this page comes from