Lines Matching full:bad
106 * that this eraseblock may become bad soon (but do not have to);
217 * bad.
305 * %-EIO is returned, the physical eraseblock most probably went bad.
355 * torture_peb - test a supposedly bad physical eraseblock.
412 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum); in torture_peb()
422 ubi_err(ubi, "read problems on freshly erased PEB %d, must be bad", in torture_peb()
521 * eraseblock is bad.
565 * ubi_io_is_bad - check if a physical eraseblock is bad.
569 * This function returns a positive number if the physical eraseblock is bad,
583 ubi_err(ubi, "error %d while checking if PEB %d is bad", in ubi_io_is_bad()
586 dbg_io("PEB %d is bad", pnum); in ubi_io_is_bad()
594 * ubi_io_mark_bad - mark a physical eraseblock as bad.
618 ubi_err(ubi, "cannot mark PEB %d bad, error %d", pnum, err); in ubi_io_mark_bad()
643 goto bad; in validate_ec_hdr()
647 ubi_err(ubi, "bad VID header offset %d, expected %d", in validate_ec_hdr()
649 goto bad; in validate_ec_hdr()
653 ubi_err(ubi, "bad data offset %d, expected %d", in validate_ec_hdr()
655 goto bad; in validate_ec_hdr()
659 ubi_err(ubi, "bad erase counter %lld", ec); in validate_ec_hdr()
660 goto bad; in validate_ec_hdr()
665 bad: in validate_ec_hdr()
666 ubi_err(ubi, "bad EC header"); in validate_ec_hdr()
687 * this eraseblock may become bad soon (but may be not);
747 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
751 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
761 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
765 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
801 * went bad.
854 ubi_err(ubi, "bad copy_flag"); in validate_vid_hdr()
855 goto bad; in validate_vid_hdr()
861 goto bad; in validate_vid_hdr()
865 ubi_err(ubi, "bad vol_id"); in validate_vid_hdr()
866 goto bad; in validate_vid_hdr()
870 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
871 goto bad; in validate_vid_hdr()
877 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
878 goto bad; in validate_vid_hdr()
882 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
883 goto bad; in validate_vid_hdr()
887 ubi_err(ubi, "bad data_pad"); in validate_vid_hdr()
888 goto bad; in validate_vid_hdr()
892 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
893 goto bad; in validate_vid_hdr()
905 goto bad; in validate_vid_hdr()
909 goto bad; in validate_vid_hdr()
913 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
914 goto bad; in validate_vid_hdr()
918 goto bad; in validate_vid_hdr()
924 goto bad; in validate_vid_hdr()
928 goto bad; in validate_vid_hdr()
933 goto bad; in validate_vid_hdr()
937 ubi_err(ubi, "bad used_ebs"); in validate_vid_hdr()
938 goto bad; in validate_vid_hdr()
944 bad: in validate_vid_hdr()
945 ubi_err(ubi, "bad VID header"); in validate_vid_hdr()
1000 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1004 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1014 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1018 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1048 * bad.
1083 * self_check_not_bad - ensure that a physical eraseblock is not bad.
1088 * it is bad and a negative error code if an error occurred.
1126 ubi_err(ubi, "bad magic %#08x, must be %#08x", in self_check_ec_hdr()
1173 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x", in self_check_peb_ec_hdr()
1209 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x", in self_check_vid_hdr()
1263 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x", in self_check_peb_vid_hdr()