nilfs_sufile_resize(9)
π 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: β¨
- 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_truncate_range(9)nilfs_sufile_get_suinfo(9)nilfs_sufile_set_suinfo(9)nilfs_sufile_trim_fs(9)nilfs_sufile_read(9)
made with π from the ./fs/nilfs2 source tree β October 2026 β and this cutie is nilfs_sufile_resize(9). periodt. π
π¦ 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