block: link child partitions to parent bdev
This commit is contained in:
parent
b5d8e0a2f7
commit
20e25dad40
2 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue