insert_node(9)
π
insert_node(9) β Kernel API Manual, bestie edition β¨
okay so this is the insert_node(9) page from the Kernel API Manual, and we are about to make the replay list make sense. no cap. π«Ά
π NAME π
insert_node β insert a node to the replay list
β SYNOPSIS β
int insert_node (struct ubifs_info *c , int lnum , int offs , int len ,
const u8 *hash , union ubifs_key *key , unsigned long long sqnum , int
deletion , int *used , loff_t old_size , loff_t new_size );
π ARGUMENTS π
cβ the UBIFS file-system description object, literally the whole context bestie.lnumβ node logical eraseblock number.offsβ node offset.lenβ node length.hashβ node hash.keyβ node key.sqnumβ sequence number.deletionβ non-zero if this is a deletion.usedβ number of bytes in use in a LEB.old_sizeβ truncation old size.new_sizeβ truncation new size.
π DESCRIPTION π
So bestie, this function inserts a scanned non-direntry node to the replay list. The replay list contains struct replay_entry elements, and we sort this list in sequence number order before applying it. The replay list is applied at the very end of the replay process. Since the list is sorted in sequence number order, the older modifications are applied first. This function returns zero in case of success and a negative error code in case of failure. slay. π
π₯ SEE ALSO π₯
- Kernel file
./fs/ubifs/replay.c 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_dent(9)ubifs_validate_entry(9)is_last_bud(9)authenticate_sleb(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 cutie came from source/version ./fs/ubifs, it is dated October 2026, and the manual page is insert_node(9). 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