nilfs_compute_checksum(9)
π 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:
nilfs_read_super_root_block(9)nilfs_read_log_header(9)nilfs_validate_log(9)nilfs_read_summary_info(9)nilfs_skip_summary_info(9)nilfs_scan_dsync_log(9)nilfs_do_roll_forward(9)nilfs_abort_roll_forward(9)nilfs_salvage_orphan_logs(9)nilfs_search_super_root(9)
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
- 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