nilfs_sufile_get_stat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

nilfs_sufile_get_stat β€” get segment usage statistics. This is page nilfs_sufile_get_stat(9) from the Kernel API Manual, and bestie, it is literally giving kernel-statistics main character energy ✨.

✨ SYNOPSIS ✨

int nilfs_sufile_get_stat (struct inode *sufile , struct nilfs_sustat
       *sustat );

πŸŽ€ ARGUMENTS πŸŽ€

  • sufile β€” inode of segment usage file πŸ—‚οΈ
  • sustat β€” pointer to a structure of segment usage statistics πŸ“Š

πŸ’« DESCRIPTION πŸ’«

okay so nilfs_sufile_get_stat retrieves segment usage statistics and stores them in the location pointed to by sustat. That's the vibe: grab the stats, put them where sustat points πŸ’….

πŸ”₯ RETURN πŸ”₯

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

  • -EIO β€” I/O error (including metadata corruption) 😭
  • -ENOMEM β€” Insufficient memory available πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/nilfs2/sufile.c β€” plus the whole friend group:


xoxo bestie πŸ’– this one came from ./fs/nilfs2 and is dated October 2026 πŸŽ€

πŸ“¦ where this page comes from