aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/nullfs.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 19:41:18 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-09 19:41:18 +0100
commitf90436dd7415354105a27846e587adefaea7ef63 (patch)
treeed8390925b4d6b3a0c71b189d04e79d4333aa3aa /src/kernel/user/nullfs.c
parent440d9dc470703d20a55365b3a560196e71d450d4 (diff)
downloadkogata-f90436dd7415354105a27846e587adefaea7ef63.tar.gz
kogata-f90436dd7415354105a27846e587adefaea7ef63.zip
Make way for nullfs
Diffstat (limited to 'src/kernel/user/nullfs.c')
-rw-r--r--src/kernel/user/nullfs.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/kernel/user/nullfs.c b/src/kernel/user/nullfs.c
index 3c11198..cb866c0 100644
--- a/src/kernel/user/nullfs.c
+++ b/src/kernel/user/nullfs.c
@@ -15,9 +15,7 @@ void register_nullfs_driver() {
register_fs_driver("nullfs", &nullfs_driver_ops);
}
-nullfs_t *make_nullfs(char* options) {
- fs_t *it = make_fs("nullfs", 0, options);
- if (it == 0) return 0;
+nullfs_t *as_nullfs(fs_t *it) {
if (it->ops != &nullfs_ops) return 0;
return (nullfs_t*)it->data;
}
@@ -27,4 +25,14 @@ bool nullfs_i_make(fs_handle_t *source, char* opts, fs_t *d) {
return false;
}
+bool nullfs_add(nullfs_t *f, const char* name, void* data, nullfs_node_ops_t *ops) {
+ // TODO
+ return false;
+}
+
+bool nullfs_add_ram_file(nullfs_t *f, const char* name, void* data, size_t init_sz, int ok_modes) {
+ // TODO
+ return false;
+}
+
/* vim: set ts=4 sw=4 tw=0 noet :*/