aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/fs
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-24 18:52:09 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-24 18:52:09 +0100
commit990e4785820136f2ab4a3bf4c1afbf0e8cf28b3c (patch)
tree26a6df66cdf12d9539e455c3607290ab069a3983 /src/kernel/include/fs
parentd89c862fb2f569275300d6a64caaa0b287367558 (diff)
downloadkogata-990e4785820136f2ab4a3bf4c1afbf0e8cf28b3c.tar.gz
kogata-990e4785820136f2ab4a3bf4c1afbf0e8cf28b3c.zip
Complete ISO9660 impl ; some strange wtf is going on.
Diffstat (limited to 'src/kernel/include/fs')
-rw-r--r--src/kernel/include/fs/iso9660.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/kernel/include/fs/iso9660.h b/src/kernel/include/fs/iso9660.h
index 292b4dd..85e9b7b 100644
--- a/src/kernel/include/fs/iso9660.h
+++ b/src/kernel/include/fs/iso9660.h
@@ -8,6 +8,8 @@
#define ISO9660_VDT_PARTITION 3
#define ISO9660_VDT_TERMINATOR 255
+#define ISO9660_DR_FLAG_DIR (1 << 1)
+
typedef struct {
uint32_t lsb, msb;
} uint32_lsb_msb_t;
@@ -87,6 +89,23 @@ typedef union {
char buf[2048];
} iso9660_vdt_entry_t;
+typedef struct {
+ iso9660_pvd_t vol_descr;
+ fs_handle_t *disk;
+ bool use_lowercase; // lowercase all names
+} iso9660_fs_t;
+
+typedef struct {
+ iso9660_dr_t dr;
+ iso9660_fs_t *fs;
+} iso9660_node_t;
+
+typedef struct {
+ iso9660_node_t *n;
+ size_t pos;
+ char buffer[2048];
+} iso9660_dh_t; // handle to an open directory
+
void register_iso9660_driver();
/* vim: set ts=4 sw=4 tw=0 noet :*/