nilfs_sufile_truncate_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nilfs_sufile_truncate_range ✨

okay so bestie, this one is from the Kernel API Manual β€” it's nilfs_sufile_truncate_range, and it's giving β€œtruncate a range of the segment array” energy. πŸ’…


🌸 NAME 🌸

nilfs_sufile_truncate_range β€” truncate range of segment array. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

       int nilfs_sufile_truncate_range (struct inode *sufile , __u64 start ,
       __u64 end );

πŸ’– ARGUMENTS πŸ’–

  • sufile β€” inode of segment usage file. literally the inode for the segment usage file.
  • start β€” start segment number (inclusive). yep, inclusive bestie.
  • end β€” end segment number (inclusive). also inclusive, no sneaky off-by-one.

πŸ”₯ RETURN πŸ”₯

0 on success, or one of the following negative error codes on failure:

  • -EBUSY β€” Dirty or active segments are present in the range. so it's busy, not today.
  • -EINVAL β€” Invalid number of segments specified. the segment count said β€œno ma'am.”
  • -EIO β€” I/O error (including metadata corruption). πŸ’€
  • -ENOMEM β€” Insufficient memory available. out of memory, crying. 😭

🌈 SEE ALSO 🌈


mwah πŸ’‹ this page is from ./fs/nilfs2, dated October 2026, for nilfs_sufile_truncate_range(9) β€” slay and read the source, bestie. 🫢

πŸ“¦ where this page comes from