Lines Matching full:node
13 * When UBIFS is mounted, it checks a flag on the master node to determine if
31 * Hence, if UBIFS finds a corrupted node at offset X, it expects only the min.
85 * get_master_node - get the last valid master node allowing for corruption.
89 * @mst: master node, if found, is returned here
93 * returns the last valid master node allowing for one area of corruption.
95 * that it is the result of an unclean unmount while the master node was being
97 * master node.
116 /* Find the first position that is definitely not a node */ in get_master_node()
129 /* See if there was a valid master node before that */ in get_master_node()
147 * trying to write a master node. in get_master_node()
156 dbg_rcvry("found a master node at %d:%d", lnum, offs); in get_master_node()
190 * write_rcvrd_mst_node - write recovered master node.
192 * @mst: master node
220 * ubifs_recover_master_node - recover the master node.
223 * This function recovers the master node from corruption that may occur due to
280 * there must be only one master node in the first LEB in ubifs_recover_master_node()
300 ubifs_msg(c, "recovered master node from LEB %d", in ubifs_recover_master_node()
315 * We had to recover the master node, which means there was an in ubifs_recover_master_node()
316 * unclean reboot. However, it is possible that the master node in ubifs_recover_master_node()
320 * 1. UBIFS was cleanly unmounted, so the master node is clean in ubifs_recover_master_node()
322 * node in the first (%UBIFS_MST_LNUM). A power cut happens, in ubifs_recover_master_node()
326 * recover the master node from the second LEB in ubifs_recover_master_node()
330 * 4. However, this master node (@c->mst_node) is marked as in ubifs_recover_master_node()
333 * node when it is re-mounter R/W later. in ubifs_recover_master_node()
335 * Thus, to force the recovery by marking the master node as in ubifs_recover_master_node()
341 /* Write the recovered master node */ in ubifs_recover_master_node()
357 ubifs_err(c, "failed to recover master node"); in ubifs_recover_master_node()
359 ubifs_err(c, "dumping first master node"); in ubifs_recover_master_node()
363 ubifs_err(c, "dumping second master node"); in ubifs_recover_master_node()
372 * ubifs_write_rcvrd_mst_node - write the recovered master node.
375 * This function writes the master node that was recovered during mounting in
460 * This function ensures that the corrupted node at @offs is the last thing
470 /* Check for empty space after the corrupt node's common header */ in no_more_nodes()
482 /* Now we know the corrupt node's length we can skip over it */ in no_more_nodes()
502 /* Get the end offset of the last node we are keeping */ in fix_unclean_leb()
578 ch = snod->node; in drop_last_group()
582 dbg_rcvry("dropping grouped node at %d:%d", in drop_last_group()
592 * drop_last_node - drop the last node.
597 * node of the scanned LEB.
607 dbg_rcvry("dropping last node at %d:%d", in drop_last_node()
657 /* A valid node, and not a padding node */ in ubifs_recover_leb()
669 /* Padding bytes or a valid padding node */ in ubifs_recover_leb()
729 * contains valid nodes or the end of a valid node, and the in ubifs_recover_leb()
739 * padding node there? We can, and this works fine with one in ubifs_recover_leb()
759 * because of the padding node which we added to LEB Y. The in ubifs_recover_leb()
801 * @lnum: LEB number of commit start node
802 * @offs: offset of commit start node
825 ubifs_err(c, "Not a valid node"); in get_cs_sqnum()
829 ubifs_err(c, "Node a CS node, type is %d", cs_node->ch.node_type); in get_cs_sqnum()
833 ubifs_err(c, "CS node cmt_no %llu != current cmt_no %llu", in get_cs_sqnum()
1016 /* A valid node, and not a padding node */ in clean_an_unclean_leb()
1028 /* Padding bytes or a valid padding node */ in clean_an_unclean_leb()
1155 * written to the master node on unmounting. In the case of an unclean unmount
1156 * the value of gc_lnum recorded in the master node is out of date and cannot
1348 * @key: node key
1349 * @deletion: node is for a deletion
1357 * the size from the inode node, the maximum size of any data node (also altered
1358 * by truncations) and a flag indicating a inode number for which no inode node
1428 /* Locate the inode node LEB number and offset */ in fix_size_in_place()
1434 * If the size recorded on the inode node is greater than the size that in fix_size_in_place()