Lines Matching full:bad
112 * that this eraseblock may become bad soon (but do not have to);
223 * bad.
323 * %-EIO is returned, the physical eraseblock most probably went bad.
397 * torture_peb - test a supposedly bad physical eraseblock.
454 ubi_msg(ubi, "PEB %d passed torture test, do not mark it as bad", pnum); in torture_peb()
464 ubi_err(ubi, "read problems on freshly erased PEB %d, must be bad", in torture_peb()
559 * eraseblock is bad.
596 * ubi_io_is_bad - check if a physical eraseblock is bad.
600 * This function returns a positive number if the physical eraseblock is bad,
614 ubi_err(ubi, "error %d while checking if PEB %d is bad", in ubi_io_is_bad()
617 dbg_io("PEB %d is bad", pnum); in ubi_io_is_bad()
625 * ubi_io_mark_bad - mark a physical eraseblock as bad.
649 ubi_err(ubi, "cannot mark PEB %d bad, error %d", pnum, err); in ubi_io_mark_bad()
674 goto bad; in validate_ec_hdr()
678 ubi_err(ubi, "bad VID header offset %d, expected %d", in validate_ec_hdr()
680 goto bad; in validate_ec_hdr()
684 ubi_err(ubi, "bad data offset %d, expected %d", in validate_ec_hdr()
686 goto bad; in validate_ec_hdr()
690 ubi_err(ubi, "bad erase counter %lld", ec); in validate_ec_hdr()
691 goto bad; in validate_ec_hdr()
696 bad: in validate_ec_hdr()
697 ubi_err(ubi, "bad EC header"); in validate_ec_hdr()
718 * this eraseblock may become bad soon (but may be not);
778 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
782 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
792 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
796 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
832 * went bad.
885 ubi_err(ubi, "bad copy_flag"); in validate_vid_hdr()
886 goto bad; in validate_vid_hdr()
892 goto bad; in validate_vid_hdr()
896 ubi_err(ubi, "bad vol_id"); in validate_vid_hdr()
897 goto bad; in validate_vid_hdr()
901 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
902 goto bad; in validate_vid_hdr()
908 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
909 goto bad; in validate_vid_hdr()
913 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
914 goto bad; in validate_vid_hdr()
918 ubi_err(ubi, "bad data_pad"); in validate_vid_hdr()
919 goto bad; in validate_vid_hdr()
931 goto bad; in validate_vid_hdr()
935 goto bad; in validate_vid_hdr()
939 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
940 goto bad; in validate_vid_hdr()
944 ubi_err(ubi, "bad data_size at last LEB"); in validate_vid_hdr()
945 goto bad; in validate_vid_hdr()
949 goto bad; in validate_vid_hdr()
955 goto bad; in validate_vid_hdr()
959 goto bad; in validate_vid_hdr()
964 goto bad; in validate_vid_hdr()
968 ubi_err(ubi, "bad used_ebs"); in validate_vid_hdr()
969 goto bad; in validate_vid_hdr()
975 bad: in validate_vid_hdr()
976 ubi_err(ubi, "bad VID header"); in validate_vid_hdr()
1032 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1036 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1046 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1050 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1080 * bad.
1115 * self_check_not_bad - ensure that a physical eraseblock is not bad.
1120 * it is bad and a negative error code if an error occurred.
1158 ubi_err(ubi, "bad magic %#08x, must be %#08x", in self_check_ec_hdr()
1205 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x", in self_check_peb_ec_hdr()
1241 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x", in self_check_vid_hdr()
1293 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x", in self_check_peb_vid_hdr()