nilfs_sufile_truncate_range(9)
β¨ 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 π
- Kernel file
./fs/nilfs2/sufile.c struct nilfs_sufile_info(9)nilfs_sufile_segment_usage_offset(9)nilfs_sufile_get_ncleansegs(9)nilfs_sufile_updatev(9)nilfs_sufile_set_alloc_range(9)nilfs_sufile_alloc(9)nilfs_sufile_mark_dirty(9)nilfs_sufile_set_segment_usage(9)nilfs_sufile_get_stat(9)nilfs_sufile_resize(9)nilfs_sufile_get_suinfo(9)nilfs_sufile_set_suinfo(9)nilfs_sufile_trim_fs(9)nilfs_sufile_read(9)
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
- 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