authenticate_sleb(9)
π authenticate_sleb(9) π
okay bestie, welcome to authenticate_sleb(9) from the Kernel API Manual β yes, kernel API manual, we are literally in the big leagues now β¨
π NAME π
authenticate_sleb β authenticate one scan LEB
πΈ SYNOPSIS πΈ
int authenticate_sleb (struct ubifs_info *c , struct ubifs_scan_leb
*sleb , struct shash_desc *log_hash , int is_last );
π¦ ARGUMENTS π¦
cβ UBIFS file-system description object. it's giving βthe whole UBIFS situationβ energy πslebβ the scan LEB to authenticate. this is the LEB we're checking, periodt.log_hashβ bestie, the original page leaves this one blank, so I'm not inventing lore π mystery icon behavior only.is_lastβ iftrue, this is the last LEB. simple, iconic, no cap.
π₯ DESCRIPTION π₯
So what it does: this function iterates over the buds of a single LEB, authenticating all buds with the authentication nodes on this LEB. literally one LEB getting its whole authentication moment π
Here's the tea: authentication nodes are written after some buds, and they contain a HMAC covering the authentication node itself and the buds between the last authentication node and the current authentication node. like, the HMAC is holding the receipts for the node and the buds in between π«Ά
It can happen that the last buds cannot be authenticated because a powercut happened when some nodes were written but not the corresponding authentication node. tragic, but that's the scenario π
This function returns the number of nodes that could be authenticated or a negative error code. so it's either a cute little count or a negative error code showing up to ruin the vibe, iykyk.
π SEE ALSO π
The original page points at the kernel file ./fs/ubifs/replay.c, and then the whole crew shows up:
struct replay_entry(9)struct bud_entry(9)set_bud_lprops(9)set_buds_lprops(9)trun_remove_range(9)inode_still_linked(9)apply_replay_entry(9)replay_entries_cmp(9)apply_replay_list(9)destroy_replay_list(9)insert_node(9)insert_dent(9)ubifs_validate_entry(9)is_last_bud(9)replay_bud(9)replay_buds(9)destroy_bud_list(9)add_replay_bud(9)validate_ref(9)replay_log_leb(9)take_ihead(9)ubifs_replay_journal(9)
mwah π this little page comes from ./fs/ubifs, dated October 2026, and it's authenticate_sleb(9) β bye bestie, periodt π
π¦ 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