static struct v_file_ops iso_file_ops = { .close = iso9660_close,
.read = iso9660_read,
- .read_page = iso9660_read,
+ .read_page = iso9660_read_page,
.write = iso9660_write,
- .write_page = iso9660_write,
+ .write_page = iso9660_write_page,
.seek = iso9660_seek,
.readdir = iso9660_readdir };
inode->id = ino;
inode->lb_addr = dir->extent_addr;
+ inode->lb_usage = ICEIL(dir->data_size, fu_len);
inode->ops = &iso_inode_ops;
inode->default_fops = &iso_file_ops;
if (dir->xattr_len) {
struct iso_xattr* xattr = (struct iso_xattr*)valloc(ISO9660_BLKSZ);
// Only bring in single FU, as we only care about the attributes.
- errno =
- dev->read(dev, xattr, ISO9660_BLKSZ * inode->lb_addr, ISO9660_BLKSZ);
+ errno = dev->ops.read(
+ dev, xattr, ISO9660_BLKSZ * inode->lb_addr, ISO9660_BLKSZ);
if (errno < 0) {
return EIO;
}