#include "blockdev.h" // These are just wrappers for now. int blockdev_read(struct file_object *fo, void *buffer, size_t n) { struct block_device *bd = fo->data; return bd->bdops->read_block(bd, buffer, n); } int blockdev_write(struct file_object *fo, void *buffer, size_t n) { struct block_device *bd = fo->data; return bd->bdops->write_block(bd, buffer, n); } int blockdev_seek(struct file_object *fo, size_t pos) { struct block_device *bd = fo->data; bd->cur_pos = pos; return pos; }