nilfs_compute_checksum(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_compute_checksum(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's nilfs_compute_checksum, and it's literally the checksum girlie of the nilfs world πŸŽ€


✨ NAME ✨

nilfs_compute_checksum β€” compute checksum of blocks continuously πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int nilfs_compute_checksum (struct the_nilfs *nilfs , struct buffer_head
*bhs , u32 *sum , unsigned long offset , u64 check_bytes , sector_t
start , unsigned long nblock );

🌸 ARGUMENTS 🌸

like, seven whole arguments, she's high-maintenance but she's worth it 🫢

  • nilfs β€” the nilfs object. your main character, fr.
  • bhs β€” the buffer head of the start block πŸ‘‘
  • sum β€” the place to store the result, i.e. where the answer goes to live ✨
  • offset β€” offset bytes in the first block πŸŽ€
  • check_bytes β€” number of bytes to be checked (yes, this many: check_bytes) πŸ”₯
  • start β€” DBN of the start block 🌈
  • nblock β€” number of blocks to be checked πŸ’…

⭐ RETURN ⭐

0 on success, or -EIO if an I/O error occurs 😭

ngl the -EIO is giving "something went wrong in the I/O department" β€” that's the whole mood. no cap.

🧚 SEE ALSO 🧚

Kernel file ./fs/nilfs2/recovery.c β€” and the whole friend group:


okay that's the whole page, you ate that πŸ’…βœ¨ this cutie lives under ./fs/nilfs2 and the date on her birth certificate says October 2026 β€” no cap, that's literally the vibe. bye bestie, go checksum those blocks πŸ¦‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from