diff --git a/include/kernel/block.h b/include/kernel/block.h index f209e68..07a9ecc 100644 --- a/include/kernel/block.h +++ b/include/kernel/block.h @@ -28,6 +28,7 @@ struct block_device { size_t lba_start; struct block_device *part_of; /* if it is a partition */ + void *priv; struct block_ops ops; struct disk disk; @@ -36,4 +37,6 @@ struct block_device { ssize_t block_read(struct block_device *dev, char *buf, size_t offset, size_t n_blocks); ssize_t block_write(struct block_device *dev, char *buf, size_t offset, size_t n_blocks); +int block_check_partitions(struct block_device *bdev); + #endif /* _BLOCK_H_ */