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.
558 * ubi_io_is_bad - check if a physical eraseblock is bad.
562 * This function returns a positive number if the physical eraseblock is bad,
576 ubi_err(ubi, "error %d while checking if PEB %d is bad", in ubi_io_is_bad()
579 dbg_io("PEB %d is bad", pnum); in ubi_io_is_bad()
587 * ubi_io_mark_bad - mark a physical eraseblock as bad.
611 ubi_err(ubi, "cannot mark PEB %d bad, error %d", pnum, err); in ubi_io_mark_bad()
636 goto bad; in validate_ec_hdr()
640 ubi_err(ubi, "bad VID header offset %d, expected %d", in validate_ec_hdr()
642 goto bad; in validate_ec_hdr()
646 ubi_err(ubi, "bad data offset %d, expected %d", in validate_ec_hdr()
648 goto bad; in validate_ec_hdr()
652 ubi_err(ubi, "bad erase counter %lld", ec); in validate_ec_hdr()
653 goto bad; in validate_ec_hdr()
658 bad: in validate_ec_hdr()
659 ubi_err(ubi, "bad EC header"); in validate_ec_hdr()
680 * this eraseblock may become bad soon (but may be not);
740 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
744 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_ec_hdr()
754 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
758 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_ec_hdr()
794 * went bad.
847 ubi_err(ubi, "bad copy_flag"); in validate_vid_hdr()
848 goto bad; in validate_vid_hdr()
854 goto bad; in validate_vid_hdr()
858 ubi_err(ubi, "bad vol_id"); in validate_vid_hdr()
859 goto bad; in validate_vid_hdr()
863 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
864 goto bad; in validate_vid_hdr()
870 ubi_err(ubi, "bad compat"); in validate_vid_hdr()
871 goto bad; in validate_vid_hdr()
875 ubi_err(ubi, "bad vol_type"); in validate_vid_hdr()
876 goto bad; in validate_vid_hdr()
880 ubi_err(ubi, "bad data_pad"); in validate_vid_hdr()
881 goto bad; in validate_vid_hdr()
885 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
886 goto bad; in validate_vid_hdr()
898 goto bad; in validate_vid_hdr()
902 goto bad; in validate_vid_hdr()
906 ubi_err(ubi, "bad data_size"); in validate_vid_hdr()
907 goto bad; in validate_vid_hdr()
911 ubi_err(ubi, "bad data_size at last LEB"); in validate_vid_hdr()
912 goto bad; in validate_vid_hdr()
916 goto bad; in validate_vid_hdr()
922 goto bad; in validate_vid_hdr()
926 goto bad; in validate_vid_hdr()
931 goto bad; in validate_vid_hdr()
935 ubi_err(ubi, "bad used_ebs"); in validate_vid_hdr()
936 goto bad; in validate_vid_hdr()
942 bad: in validate_vid_hdr()
943 ubi_err(ubi, "bad VID header"); in validate_vid_hdr()
998 ubi_warn(ubi, "bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1002 dbg_bld("bad magic number at PEB %d: %08x instead of %08x", in ubi_io_read_vid_hdr()
1012 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1016 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", in ubi_io_read_vid_hdr()
1046 * bad.
1081 * self_check_not_bad - ensure that a physical eraseblock is not bad.
1086 * it is bad and a negative error code if an error occurred.
1124 ubi_err(ubi, "bad magic %#08x, must be %#08x", in self_check_ec_hdr()
1171 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x", in self_check_peb_ec_hdr()
1207 ubi_err(ubi, "bad VID header magic %#08x at PEB %d, must be %#08x", in self_check_vid_hdr()
1261 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x", in self_check_peb_vid_hdr()