check_pattern — [GENERIC] check if a pattern is in the buffer
the buffer to search
the length of buffer to search
the pagelength
search pattern descriptor
Check for a pattern at the given place. Used to search bad block tables and good / bad block identifiers. If the SCAN_EMPTY option is set then check, if all bytes except the pattern area contain 0xff