Lines Matching full:bad

106  *   that this eraseblock may become bad soon (but do not have to);
229 * bad.
317 * %-EIO is returned, the physical eraseblock most probably went bad.
367 * torture_peb - test a supposedly bad physical eraseblock.
424 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum); in torture_peb()
434 ubi_err(ubi, "read problems on freshly erased PEB %d, must be bad", in torture_peb()
533 * eraseblock is bad.
577 * ubi_io_is_bad - check if a physical eraseblock is bad.
581 * This function returns a positive number if the physical eraseblock is bad,
595 ubi_err(ubi, "error %d while checking if PEB %d is bad", in ubi_io_is_bad()
598 dbg_io("PEB %d is bad", pnum); in ubi_io_is_bad()
606 * ubi_io_mark_bad - mark a physical eraseblock as bad.
630 ubi_err(ubi, "cannot mark PEB %d bad, error %d", pnum, err); in ubi_io_mark_bad()
655 goto bad; in validate_ec_hdr()
659 ubi_err(ubi, "bad VID header offset %d, expected %d", in validate_ec_hdr()
661 goto bad; in validate_ec_hdr()
665 ubi_err(ubi, "bad data offset %d, expected %d", in validate_ec_hdr()
667 goto bad; in validate_ec_hdr()
671 ubi_err(ubi, "bad erase counter %lld", ec); in validate_ec_hdr()
672 goto bad; in validate_ec_hdr()
677 bad: in validate_ec_hdr()
678 ubi_err(ubi, "bad EC header"); in validate_ec_hdr()
699 * this eraseblock may become bad soon (but may be not);
759 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
763 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
773 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
777 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
842 * went bad.
898 ubi_err(ubi, "bad copy_flag"); in validate_vid_hdr()
899 goto bad; in validate_vid_hdr()
905 goto bad; in validate_vid_hdr()
909 ubi_err(ubi, "bad vol_id"); in validate_vid_hdr()
910 goto bad; in validate_vid_hdr()
914 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
915 goto bad; in validate_vid_hdr()
921 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
922 goto bad; in validate_vid_hdr()
926 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
927 goto bad; in validate_vid_hdr()
931 ubi_err(ubi, "bad data_pad"); in validate_vid_hdr()
932 goto bad; in validate_vid_hdr()
936 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
937 goto bad; in validate_vid_hdr()
949 goto bad; in validate_vid_hdr()
953 goto bad; in validate_vid_hdr()
957 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
958 goto bad; in validate_vid_hdr()
962 goto bad; in validate_vid_hdr()
968 goto bad; in validate_vid_hdr()
972 goto bad; in validate_vid_hdr()
977 goto bad; in validate_vid_hdr()
981 ubi_err(ubi, "bad used_ebs"); in validate_vid_hdr()
982 goto bad; in validate_vid_hdr()
988 bad: in validate_vid_hdr()
989 ubi_err(ubi, "bad VID header"); in validate_vid_hdr()
1044 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1048 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1058 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1062 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1121 * bad.
1159 * self_check_not_bad - ensure that a physical eraseblock is not bad.
1164 * it is bad and a negative error code if an error occurred.
1202 ubi_err(ubi, "bad magic %#08x, must be %#08x", in self_check_ec_hdr()
1249 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x", in self_check_peb_ec_hdr()
1285 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x", in self_check_vid_hdr()
1339 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x", in self_check_peb_vid_hdr()