Lines Matching full:node
251 * read_znode - read an indexing node from flash and fill znode.
253 * @lnum: LEB of the indexing node to read
254 * @offs: node offset
255 * @len: node length
258 * This function reads an indexing node from the flash media and fills znode
260 * code in case of failure. The read indexing node is validated and if anything
334 ubifs_err(c, "bad target node (type %d) length (%d)", in read_znode()
342 ubifs_err(c, "bad target node (type %d) length (%d)", in read_znode()
380 ubifs_err(c, "bad indexing node at LEB %d:%d, error %d", lnum, offs, err); in read_znode()
440 * ubifs_tnc_read_node - read a leaf node from the flash media.
442 * @zbr: key and position of the node
443 * @node: node is returned here
445 * This function reads a node defined by @zbr from the flash media. Returns
450 void *node) in ubifs_tnc_read_node() argument
457 * 'zbr' has to point to on-flash node. The node may sit in a bud and in ubifs_tnc_read_node()
462 err = ubifs_read_node_wbuf(wbuf, node, type, zbr->len, in ubifs_tnc_read_node()
465 err = ubifs_read_node(c, node, type, zbr->len, zbr->lnum, in ubifs_tnc_read_node()
473 /* Make sure the key of the read node is correct */ in ubifs_tnc_read_node()
474 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node()
476 ubifs_err(c, "bad key in node at LEB %d:%d", in ubifs_tnc_read_node()
479 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
480 ubifs_dump_node(c, node); in ubifs_tnc_read_node()