nilfs_bmap_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_bmap_delete(9) πŸ’…

ok so like, welcome to the Kernel API Manual bestie ✨ this one's from nilfs_bmap_delete(9) and it's genuinely so straightforward you're gonna slay it.


🌸 NAME 🌸

nilfs_bmap_delete β€” delete a key-record pair from a bmap πŸŽ€


✨ SYNOPSIS ✨

int nilfs_bmap_delete (struct nilfs_bmap *bmap , __u64 key );

like, that's the whole signature. no cap. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bmap β€” bmap πŸ’–
  • key β€” key πŸ’–

(yeah the manpage is literally that chill about it, we're not gonna over-explain β€” it's a bmap and it's a key, iykyk)


πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: nilfs_bmap_delete deletes the key-record pair specified by key from bmap. that's it. that's the whole thing. it takes the key, it finds the record, it's gone. iconic behavior honestly πŸ‘‘


πŸ”₯ RETURN πŸ”₯

it returns 0 on success ✨ β€” or one of these negative error codes on failure (yes they're negative, they're little haters):

  • -EIO β€” I/O error (including metadata corruption) 😭 like the disk is not okay
  • -ENOENT β€” a record associated with key does not exist πŸ’€ nothing to delete, bestie
  • -ENOMEM β€” insufficient memory available πŸ™ˆ out of RAM, tragic

🌈 SEE ALSO 🌈

kernel file ./fs/nilfs2/bmap.c β€” go read the source, it's giving main character energy πŸ“–βœ¨

and all the sibling functions, aka the whole bmap friend group 🫢:


okay that's the whole page, mwah πŸ’‹ this came out of ./fs/nilfs2, dated October 2026, and it's the nilfs_bmap_delete(9) page β€” go forth and delete those key-record pairs, you've got this πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from