Lines Matching full:fastmap
54 * self_check_seen - check whether all PEB have been seen by fastmap.
67 ubi_err(ubi, "self-check failed for PEB %d, fastmap didn't see it", pnum); in self_check_seen()
76 * ubi_calc_fm_size - calculates the fastmap size in bytes for an UBI device.
97 * new_fm_vbuf() - allocate a new volume header for fastmap usage.
117 /* UBI implementations without fastmap support have to delete the in new_fm_vbuf()
118 * fastmap. in new_fm_vbuf()
263 /* This case can happen if the fastmap gets written in update_vol()
352 ubi_err(ubi, "orphaned volume in fastmap pool!"); in process_pool_aeb()
364 * If fastmap detects a free PEB in the pool it has to check whether
365 * this PEB has been unmapped after writing the fastmap.
422 dbg_bld("scanning fastmap pool: size = %i", pool_size); in scan_pool()
426 * after the creation of the fastmap in scan_pool()
435 ubi_err(ubi, "bad PEB in fastmap pool!"); in scan_pool()
502 ubi_err(ubi, "fastmap pool PEBs contains damaged PEBs!"); in scan_pool()
516 * count_fastmap_pebs - Counts the PEBs found by fastmap.
540 * ubi_attach_fastmap - creates ubi_attach_info from a fastmap.
543 * @fm: the fastmap to be attached
545 * Returns 0 on success, UBI_BAD_FASTMAP if the found fastmap was unusable.
582 ubi_err(ubi, "bad fastmap header magic: 0x%x, expected: 0x%x", in ubi_attach_fastmap()
592 ubi_err(ubi, "bad fastmap pool magic: 0x%x, expected: 0x%x", in ubi_attach_fastmap()
602 ubi_err(ubi, "bad fastmap WL pool magic: 0x%x, expected: 0x%x", in ubi_attach_fastmap()
699 ubi_err(ubi, "bad fastmap vol header magic: 0x%x, expected: 0x%x", in ubi_attach_fastmap()
729 ubi_err(ubi, "bad fastmap EBA header magic: 0x%x, expected: 0x%x", in ubi_attach_fastmap()
785 * If fastmap is leaking PEBs (must not happen), raise a in ubi_attach_fastmap()
812 * find_fm_anchor - find the most recent Fastmap superblock (anchor)
821 list_for_each_entry(aeb, &ai->fastmap, u.list) { in find_fm_anchor()
850 * ubi_scan_fastmap - scan the fastmap.
854 * used to find the most recent Fastmap data structure
856 * Returns 0 on success, UBI_NO_FASTMAP if no fastmap was found,
878 /* Copy all (possible) fastmap blocks into our new attach structure. */ in ubi_scan_fastmap()
879 list_for_each_entry(aeb, &scan_ai->fastmap, u.list) { in ubi_scan_fastmap()
886 list_add(&new->u.list, &ai->fastmap); in ubi_scan_fastmap()
919 ubi_err(ubi, "bad fastmap version: %i, expected: %i", in ubi_scan_fastmap()
927 ubi_err(ubi, "number of fastmap blocks is invalid: %i", in ubi_scan_fastmap()
935 ubi_err(ubi, "bad fastmap size: %zi, expected: %zi", in ubi_scan_fastmap()
966 ubi_err(ubi, "Fastmap anchor PEB mismatch: PEB: %i vs. %i", in ubi_scan_fastmap()
974 ubi_err(ubi, "unable to read fastmap block# %i EC (PEB: %i)", in ubi_scan_fastmap()
999 ubi_err(ubi, "unable to read fastmap block# %i (PEB: %i)", in ubi_scan_fastmap()
1006 ubi_err(ubi, "bad fastmap anchor vol_id: 0x%x, expected: 0x%x", in ubi_scan_fastmap()
1014 ubi_err(ubi, "bad fastmap data vol_id: 0x%x, expected: 0x%x", in ubi_scan_fastmap()
1028 ubi_err(ubi, "unable to read fastmap block# %i (PEB: %i, " in ubi_scan_fastmap()
1042 ubi_err(ubi, "fastmap data CRC is invalid"); in ubi_scan_fastmap()
1080 ubi_msg(ubi, "attached by fastmap"); in ubi_scan_fastmap()
1081 ubi_msg(ubi, "fastmap pool size: %d", ubi->fm_pool.max_size); in ubi_scan_fastmap()
1082 ubi_msg(ubi, "fastmap WL pool size: %d", in ubi_scan_fastmap()
1092 ubi_err(ubi, "Attach by fastmap failed, doing a full scan!"); in ubi_scan_fastmap()
1124 * ubi_write_fastmap - writes a fastmap.
1126 * @new_fm: the to be written fastmap
1189 /* the max sqnum will be filled in while *reading* the fastmap */ in ubi_write_fastmap()
1336 dbg_bld("writing fastmap SB to PEB %i", new_fm->e[0]->pnum); in ubi_write_fastmap()
1339 ubi_err(ubi, "unable to write vid_hdr to fastmap SB!"); in ubi_write_fastmap()
1356 dbg_bld("writing fastmap data to PEB %i sqnum %llu", in ubi_write_fastmap()
1370 ubi_err(ubi, "unable to write fastmap to PEB %i!", in ubi_write_fastmap()
1380 dbg_bld("fastmap written!"); in ubi_write_fastmap()
1394 * invalidate_fastmap - destroys a fastmap.
1398 * is issued. We need this if UBI is about to write a new fastmap
1400 * a) Make sure that the current fastmap will not be usued upon
1402 * current fastmap in a valid state.
1435 * Create fake fastmap such that UBI will fall back in invalidate_fastmap()
1460 * return_fm_pebs - returns all PEBs used by a fastmap back to the
1463 * @fm: fastmap layout object
1484 * a fastmap pool becomes full.
1517 ubi_err(ubi, "fastmap too large"); in ubi_update_fastmap()
1531 ubi_err(ubi, "could not erase old fastmap PEB"); in ubi_update_fastmap()
1564 /* Old fastmap is larger than the new one */ in ubi_update_fastmap()
1632 ubi_warn(ubi, "Unable to write new fastmap, err=%i", ret); in ubi_update_fastmap()
1636 ubi_err(ubi, "Unable to invalidate current fastmap!"); in ubi_update_fastmap()