Lines Matching full:node
11 /* This file implements reading and writing the master node */
21 * scan_for_master - search the valid master node.
24 * This function scans the master node LEBs and search for the latest master
25 * node. Returns zero in case of success, %-EUCLEAN if there master area is
46 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master()
66 (void *)snod->node + UBIFS_CH_SZ, in scan_for_master()
78 ubifs_err(c, "unexpected node type %d master LEB %d:%d", in scan_for_master()
85 * validate_master - validate master node.
88 * This function validates data which was read from master node. Returns zero
236 ubifs_err(c, "bad master node at offset %d error %d", c->mst_offs, err); in validate_master()
242 * ubifs_read_master - read master node.
245 * This function finds and reads the master node during file-system mount. If
246 * the flash is empty, it creates default master node as well. Returns zero in
312 ubifs_err(c, "bad leb_cnt on master node"); in ubifs_read_master()
324 * Reflect changes back onto the master node. N.B. the master in ubifs_read_master()
325 * node gets written immediately whenever mounting (or in ubifs_read_master()
348 * ubifs_write_master - write master node.
351 * This function writes the master node. Returns zero in case of success and a
352 * negative error code in case of failure. The master node is written twice to