aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-09 11:49:30 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-09 11:49:30 +0100
commit8c1f280c1bc948a20e244b32d824780b08bf85c9 (patch)
tree6288a0c801c05a2c06378d75a912f06b86438c3d /src/kernel/fs
parent6dd488b87fdc47fb377ba648a6cd598bdab87f59 (diff)
downloadkogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.tar.gz
kogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.zip
Require all fs_handle_t objects to point to a node.
Diffstat (limited to 'src/kernel/fs')
-rw-r--r--src/kernel/fs/iso9660.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/fs/iso9660.c b/src/kernel/fs/iso9660.c
index a3db67e..9c9d31a 100644
--- a/src/kernel/fs/iso9660.c
+++ b/src/kernel/fs/iso9660.c
@@ -223,7 +223,7 @@ bool iso9660_file_open(fs_node_ptr n, int mode) {
}
size_t iso9660_file_read(fs_handle_t *h, size_t offset, size_t len, char* buf) {
- iso9660_node_t *node = (iso9660_node_t*)h->data;
+ iso9660_node_t *node = (iso9660_node_t*)h->node->data;
if (offset >= node->dr.size.lsb) return 0;
if (offset + len > node->dr.size.lsb) len = node->dr.size.lsb - offset;
@@ -267,7 +267,7 @@ void iso9660_file_close(fs_node_ptr f) {
bool iso9660_dir_readdir(fs_handle_t *h, size_t ent_no, dirent_t *d) {
// TODO : Very nonefficient !!
- iso9660_node_t *node = (iso9660_node_t*)h->data;
+ iso9660_node_t *node = (iso9660_node_t*)h->node->data;
char buffer[2048];
size_t dr_len = 0;