boot: print list of block devices on mount fail

This commit is contained in:
Michael Shaw 2023-11-01 19:55:44 -04:00
commit 36c6f7b92c
4 changed files with 17 additions and 2 deletions

View file

@ -31,6 +31,7 @@ struct block_device *block_register(char *name, struct block_device_ops *ops, vo
struct block_device *block_get_device(const char *name);
int block_read(struct block_device *bdev, void *buf, size_t offset, size_t size);
int block_write(struct block_device *bdev, void *buf, size_t offset, size_t size);
void kerror_print_blkdevs();
extern struct block_device *block_devices[];
extern size_t block_devices_count;