nilfs_bmap_truncate(9)
π« nilfs_bmap_truncate(9) π«
okay so bestie, welcome to the Kernel API Manual β specifically the nilfs_bmap_truncate(9) page, and yes this is the whole thing, we're getting into it π
β¨ NAME β¨
nilfs_bmap_truncate β truncate a bmap to a specified key π«Ά
πΈ SYNOPSIS πΈ
int nilfs_bmap_truncate (struct nilfs_bmap *bmap , __u64 key );
like, that's the whole signature, no notes π
π¦ ARGUMENTS π¦
bmapβ bmap. that's it. that's the description. it's giving "the variable name says it all" energy, and honestly? iconic πkeyβ key. same vibe, same energy, we love a minimal queen β¨
π DESCRIPTION π
okay so here's the tea: nilfs_bmap_truncate removes key-record pairs whose keys are greater than or equal to key from bmap. like a little cleanup crew that comes in and swipes everything from key onward π§Ήβ¨ lowkey satisfying ngl.
π₯ RETURN π₯
so it returns 0 on success, or one of these negative error codes when things go sideways (and they can, bestie π):
-EIOβ I/O error (including metadata corruption). yeah that metadata corruption part is not a vibe, take it seriously fr fr π-ENOMEMβ Insufficient memory available. the classic "ran out of memory" moment, we've all been there π«
π SEE ALSO π
the whole friend group, assembled π
Kernel file ./fs/nilfs2/bmap.c
nilfs_bmap_lookup_at_level(9)nilfs_bmap_insert(9)nilfs_bmap_seek_key(9)nilfs_bmap_delete(9)nilfs_bmap_clear(9)nilfs_bmap_propagate(9)nilfs_bmap_lookup_dirty_buffers(9)nilfs_bmap_assign(9)nilfs_bmap_mark(9)nilfs_bmap_test_and_clear_dirty(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
okay that's the whole page, no cap. go truncate something (responsibly) π
and that's a wrap, mwah π β this one comes from ./fs/nilfs2, dated October 2026, and it's filing itself under nilfs_bmap_truncate(9). slay πβ¨π
π¦ 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