blob: 3c111988d5766a51b1b0d06a9cb5ffe2df72692f (
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
|
#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 *make_nullfs(char* options) {
fs_t *it = make_fs("nullfs", 0, options);
if (it == 0) return 0;
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;
}
/* vim: set ts=4 sw=4 tw=0 noet :*/
|