badblock detection, small/large block support