block: link child partitions to parent bdev

This commit is contained in:
Michael Shaw 2024-03-02 00:35:50 -05:00
commit 20e25dad40
2 changed files with 6 additions and 0 deletions

View file

@ -25,6 +25,8 @@ struct block_device {
size_t partition_count;
void *fs;
struct block_device *parent;
struct block_device *next_part; /* singly linked list */
};
struct block_device *block_register(char *name, struct block_device_ops *ops, void *data, size_t block_count, size_t block_size);