Lines Matching refs: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);
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
118 * fastmap.
263 /* This case can happen if the fastmap gets written
352 ubi_err(ubi, "orphaned volume in fastmap pool!");
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);
426 * after the creation of the fastmap
435 ubi_err(ubi, "bad PEB in fastmap pool!");
502 ubi_err(ubi, "fastmap pool PEBs contains damaged PEBs!");
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",
592 ubi_err(ubi, "bad fastmap pool magic: 0x%x, expected: 0x%x",
602 ubi_err(ubi, "bad fastmap WL pool magic: 0x%x, expected: 0x%x",
699 ubi_err(ubi, "bad fastmap vol header magic: 0x%x, expected: 0x%x",
729 ubi_err(ubi, "bad fastmap EBA header magic: 0x%x, expected: 0x%x",
785 * If fastmap is leaking PEBs (must not happen), raise a
821 list_for_each_entry(aeb, &ai->fastmap, u.list) {
850 * ubi_scan_fastmap - scan the fastmap.
856 * Returns 0 on success, UBI_NO_FASTMAP if no fastmap was found,
878 /* Copy all (possible) fastmap blocks into our new attach structure. */
879 list_for_each_entry(aeb, &scan_ai->fastmap, u.list) {
886 list_add(&new->u.list, &ai->fastmap);
919 ubi_err(ubi, "bad fastmap version: %i, expected: %i",
927 ubi_err(ubi, "number of fastmap blocks is invalid: %i",
935 ubi_err(ubi, "bad fastmap size: %zi, expected: %zi",
974 ubi_err(ubi, "unable to read fastmap block# %i EC (PEB: %i)",
999 ubi_err(ubi, "unable to read fastmap block# %i (PEB: %i)",
1006 ubi_err(ubi, "bad fastmap anchor vol_id: 0x%x, expected: 0x%x",
1014 ubi_err(ubi, "bad fastmap data vol_id: 0x%x, expected: 0x%x",
1028 ubi_err(ubi, "unable to read fastmap block# %i (PEB: %i, "
1042 ubi_err(ubi, "fastmap data CRC is invalid");
1080 ubi_msg(ubi, "attached by fastmap");
1081 ubi_msg(ubi, "fastmap pool size: %d", ubi->fm_pool.max_size);
1082 ubi_msg(ubi, "fastmap WL pool size: %d",
1092 ubi_err(ubi, "Attach by fastmap failed, doing a full scan!");
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 */
1336 dbg_bld("writing fastmap SB to PEB %i", new_fm->e[0]->pnum);
1339 ubi_err(ubi, "unable to write vid_hdr to fastmap SB!");
1356 dbg_bld("writing fastmap data to PEB %i sqnum %llu",
1370 ubi_err(ubi, "unable to write fastmap to PEB %i!",
1380 dbg_bld("fastmap written!");
1441 * invalidate_fastmap - destroys a fastmap.
1445 * is issued. We need this if UBI is about to write a new fastmap
1447 * a) Make sure that the current fastmap will not be usued upon
1449 * current fastmap in a valid state.
1482 * Create fake fastmap such that UBI will fall back
1507 * return_fm_pebs - returns all PEBs used by a fastmap back to the
1510 * @fm: fastmap layout object
1531 * a fastmap pool becomes full.
1568 ubi_err(ubi, "fastmap too large");
1582 ubi_err(ubi, "could not erase old fastmap PEB");
1615 /* Old fastmap is larger than the new one */
1684 ubi_warn(ubi, "Unable to write new fastmap, err=%i", ret);
1688 ubi_err(ubi, "Unable to invalidate current fastmap!");