aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/nullfs.c
blob: cb866c03a4909059aded30e6fcd08c843a4bfdca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <nullfs.h>

bool nullfs_i_make(fs_handle_t *source, char* opts, fs_t *d);

fs_driver_ops_t nullfs_driver_ops = {
	.make = nullfs_i_make,
	.detect = 0,
};

fs_ops_t nullfs_ops = {
	0 	//TODO
};

void register_nullfs_driver() {
	register_fs_driver("nullfs", &nullfs_driver_ops);
}

nullfs_t *as_nullfs(fs_t *it) {
	if (it->ops != &nullfs_ops) return 0;
	return (nullfs_t*)it->data;
}

bool nullfs_i_make(fs_handle_t *source, char* opts, fs_t *d) {
	// TODO
	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 :*/