diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-24 16:58:33 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-24 16:58:33 +0100 |
commit | 150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8 (patch) | |
tree | e92a633a780104617483fd9fd379238299affabd /src/kernel/fs | |
parent | fa8a840c6dfc9eb737ef5d777f066b05eb8d9544 (diff) | |
download | kogata-150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8.tar.gz kogata-150dd5f860a5f22a8c3bcc1bf3a1f2e36dcf6fd8.zip |
Change VFS a bit : the root directory of a fs is now a pointer. Fix tests.
Diffstat (limited to 'src/kernel/fs')
-rw-r--r-- | src/kernel/fs/iso9660.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/kernel/fs/iso9660.c b/src/kernel/fs/iso9660.c index 60e9a81..b17a975 100644 --- a/src/kernel/fs/iso9660.c +++ b/src/kernel/fs/iso9660.c @@ -3,16 +3,14 @@ #include <fs/iso9660.h> static bool iso9660_make(fs_handle_t *source, const char* opts, fs_t *t); -static bool iso9660_detect(fs_handle_t *source); static fs_driver_ops_t iso9660_driver_ops = { .make = iso9660_make, - .detect = iso9660_detect, }; void register_iso9660_driver() { - ASSERT(sizeof(iso9660_vdt_entry_t) == 2048); - ASSERT(sizeof(iso9660_dr_t) == 34); + //ASSERT(sizeof(iso9660_vdt_entry_t) == 2048); + //ASSERT(sizeof(iso9660_dr_t) == 34); register_fs_driver("iso9660", &iso9660_driver_ops); } @@ -21,7 +19,7 @@ void register_iso9660_driver() { // FILESYSTEM DETECTION AND SETUP // // ============================== // -static bool iso9660_detect(fs_handle_t *source) { +static bool iso9660_make(fs_handle_t *source, const char* opts, fs_t *t) { stat_t st; if (!file_stat(source, &st)) return false; if ((st.type & FT_BLOCKDEV) != 0) return false; @@ -32,8 +30,4 @@ static bool iso9660_detect(fs_handle_t *source) { return false; // TODO } -static bool iso9660_make(fs_handle_t *source, const char* opts, fs_t *t) { - return false; // TODO -} - /* vim: set ts=4 sw=4 tw=0 noet :*/ |