[PATCH 1/2] block: Add a helper to validate the block size