fsverity_verify_bio(9)
π fsverity_verify_bio(9) β the kernel API manual, but make it make sense π
okay bestie, so this is a page straight out of the Kernel API Manual (the fsverity_verify_bio(9) one, yes, that's the whole title, we love a self-referential moment) β and it's lowkey iconic actually. sit down, hydrate, let's get into it π¦
β¨ NAME β¨
fsverity_verify_bio β verify a 'read' bio that has just completed. that's it. that's the vibe. a bio finishes reading and we're like "girl, prove it" π
πΈ SYNOPSIS πΈ
void fsverity_verify_bio (struct fsverity_info *vi , struct bio *bio );
not me copy-pasting the signature exactly so nobody comes for me β returns void, takes two args, slay β¨
π ARGUMENTS π
viβ thefsverity_infofor the inode to be read. the receipts, basically π§Ύbioβ the bio to verify. the thing that just came back from the read and now has to answer for itself π
π₯ DESCRIPTION π₯
so here's the tea β: this verifies the bio's data against the file's Merkle tree. that's the whole job. no cap.
hard requirement alert π¨ β all bio data segments must be aligned to the file's Merkle tree block size. must. like, non-negotiable. if any data fails verification, then bio->bi_status is set to an error status. that's how the failure gets reported back β it's giving "you will be dealt with" and honestly? fair.
this is a helper function for use by the ->readahead method of filesystems that issue bios to read data directly into the page cache. so if your fs is out here doing that, this is your girl π«Ά
β οΈ but listen β filesystems that populate the page cache without issuing bios (e.g. non block-based filesystems) must instead call fsverity_verify_blocks directly. different path, same energy. don't skip it.
also, and this part matters: all filesystems must also call fsverity_verify_blocks on holes. yes, all of them. holes get checked too. no exceptions, periodt π―
π SEE ALSO π
- Kernel file
./fs/verity/verify.c fsverity_readahead(9)fsverity_verify_blocks(9)fsverity_enqueue_verify_work(9)
iykyk β go read them if you want the full lore π
π the sign-off π
so ./fs/verity is the source, this dropped October 2026, and the page itself is fsverity_verify_bio(9) β we've come full circle and honestly? main character energy βπ
now go verify your bios bestie, and remember: aligned segments or it's not happening π β¨π
π¦ 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