Searched refs:corrupted (Results 1 - 12 of 12) sorted by relevance

/u-boot/fs/ubifs/
H A Dscan.c297 goto corrupted;
303 goto corrupted;
324 goto corrupted;
337 goto corrupted;
342 corrupted:
H A Drecovery.c31 * Hence, if UBIFS finds a corrupted node at offset X, it expects only the min.
32 * I/O unit corresponding to offset X to contain corrupted data, all the
463 * This function ensures that the corrupted node at @offs is the last thing
709 goto corrupted;
733 * second half of B contains corrupted data or garbage. This
789 /* Re-scan the corrupted data with verbose messages */
792 corrupted:
863 * (assume that only the last log LEB can be corrupted by an unclean reboot).
H A Dsuper.c685 if (c->vi.corrupted) {
686 ubifs_warn(c, "UBI volume is corrupted - read-only mode");
/u-boot/include/linux/mtd/
H A Dubi.h52 * @corrupted: non-zero if the volume is corrupted (static volumes only)
61 * The @corrupted flag is only relevant to static volumes and is always zero
72 * To put it differently, @corrupted and @upd_marker fields have different
74 * o the @corrupted flag means that this static volume is corrupted for some
79 * I.e., the @corrupted flag is never set if the @upd_marker flag is set.
108 int corrupted; member in struct:ubi_volume_info
/u-boot/drivers/mtd/ubi/
H A Dkapi.c83 vi->corrupted = vol->corrupted;
209 ubi_warn(ubi, "volume %d on UBI device %d is corrupted",
211 vol->corrupted = 1;
447 ubi_warn(ubi, "mark volume %d as corrupted", vol_id);
448 vol->corrupted = 1;
487 ubi_warn(ubi, "mark volume %d as corrupted", vol_id);
488 vol->corrupted = 1;
H A Dvmt.c41 __ATTR(corrupted, S_IRUGO, vol_attribute_show, NULL);
97 ret = sprintf(buf, "%d\n", vol->corrupted);
219 ubi_err(ubi, "%d PEBs are corrupted and not used",
482 ubi_err(ubi, "%d PEBs are corrupted and not used",
704 if (vol->upd_marker && vol->corrupted) {
705 ubi_err(ubi, "update marker and corrupted simultaneously");
734 if (vol->corrupted) {
735 ubi_err(ubi, "corrupted dynamic volume");
H A Dupd.c79 * data size and clears the "corrupted" flag (static volumes only). Returns
95 vol->corrupted = 0;
H A Dattach.c33 * whether the headers are corrupted or not. Sometimes UBI also protects the
58 * scanning). UBI assumes corruption type 2 if the VID header is corrupted and
113 * basically means it will be processed first later. E.g., we add corrupted
114 * PEBs (corrupted due to power cuts) to the head of the erase list to make
150 * add_corrupted - add a corrupted physical eraseblock.
155 * This function allocates a 'struct ubi_ainf_peb' object for a corrupted
164 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec);
321 * o bit 2 is cleared: the older LEB is not corrupted;
322 * o bit 2 is set: the older LEB is corrupted.
327 int len, err, second_is_newer, bitflips = 0, corrupted local
[all...]
H A Dvtbl.c160 * vtbl_check - check if volume table is not corrupted and sensible.
369 * not corrupted, and recovering from corruptions if needed. Returns volume
393 * should LEB 1. So it is OK if LEB 0 is corrupted while LEB 1 is not.
396 * 0 nor LEB 1 are corrupted, but they are different. In this case, LEB
403 * b. if LEB 0 is corrupted, but LEB 1 has to be OK, and we copy LEB 1
448 ubi_warn(ubi, "volume table copy #2 is corrupted");
459 /* LEB 0 is corrupted or does not exist */
466 /* Both LEB 0 and LEB 1 are corrupted */
467 ubi_err(ubi, "both volume tables are corrupted");
471 ubi_warn(ubi, "volume table copy #1 is corrupted");
[all...]
H A Dubi.h98 * UBI_IO_BAD_HDR: the EC or VID header is corrupted (bad magic or CRC)
301 * @corrupted: %1 if the volume is corrupted (static volumes only)
307 * The @corrupted field indicates that the volume's contents is corrupted.
350 unsigned int corrupted:1; member in struct:ubi_volume
504 * @corr_peb_count: count of corrupted physical eraseblocks (preserved and not
702 * @corr: list of corrupted physical eraseblocks
H A Ddebug.c113 printf("\tcorrupted %d\n", vol->corrupted);
180 * @type: object type: 0 - not corrupted, 1 - corrupted
/u-boot/cmd/
H A Dubi.c382 vol->corrupted = 1;
454 if (vol->corrupted)
455 printf("read from corrupted volume %d", vol->vol_id);

Completed in 74 milliseconds