/* Return: true if the eraseblock is reserved, false otherwise.  */
bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos)
/* Return: true if the eraseblock is reserved, false otherwise.  */
bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos)
{
	unsigned int entry;
	int status;
	if (!nanddev_bbt_is_initialized(nand))
		return false;
	entry = nanddev_bbt_pos_to_entry(nand, pos);
	status = nanddev_bbt_get_block_status(nand, entry);
	return status == NAND_BBT_BLOCK_RESERVED;
}