Lines Matching defs:node
254 * read_znode - read an indexing node from flash and fill znode.
256 * @zzbr: the zbranch describing the node to read
259 * This function reads an indexing node from the flash media and fills znode
261 * code in case of failure. The read indexing node is validated and if anything
346 ubifs_err(c, "bad target node (type %d) length (%d)",
354 ubifs_err(c, "bad target node (type %d) length (%d)",
392 ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err);
452 * ubifs_tnc_read_node - read a leaf node from the flash media.
454 * @zbr: key and position of the node
455 * @node: node is returned here
457 * This function reads a node defined by @zbr from the flash media. Returns
461 void *node)
468 * 'zbr' has to point to on-flash node. The node may sit in a bud and
473 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len,
476 err = ubifs_read_node(c, node, type, zbr->len, zbr->lnum,
484 /* Make sure the key of the read node is correct */
485 key_read(c, node + UBIFS_KEY_OFFSET, &key1);
487 ubifs_err(c, "bad key in node at LEB %d:%d",
490 dbg_tnck(&key1, "but found node's key ");
491 ubifs_dump_node(c, node, zbr->len);
495 err = ubifs_node_check_hash(c, node, zbr->hash);
497 ubifs_bad_hash(c, node, zbr->hash, zbr->lnum, zbr->offs);