From 8bfbc4b05b219950e3eb8ac377b8cb3020ddb9ab Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Feb 2015 21:28:11 +0100 Subject: Work on nullfs --- src/kernel/include/nullfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/include/nullfs.h') diff --git a/src/kernel/include/nullfs.h b/src/kernel/include/nullfs.h index 16fff87..045cc93 100644 --- a/src/kernel/include/nullfs.h +++ b/src/kernel/include/nullfs.h @@ -13,6 +13,7 @@ typedef struct { size_t (*write)(void* f, size_t offset, size_t len, const char* buf); void (*close)(void* f); void (*delete)(void* f); + void (*dispose)(void* f); } nullfs_node_ops_t; void register_nullfs_driver(); @@ -20,6 +21,6 @@ void register_nullfs_driver(); nullfs_t* as_nullfs(fs_t *fs); bool nullfs_add(nullfs_t *f, const char* name, void* data, nullfs_node_ops_t* ops); -bool nullfs_add_ram_file(nullfs_t *f, const char* name, void* data, size_t init_sz, int ok_modes); +bool nullfs_add_ram_file(nullfs_t *f, const char* name, void* data, size_t init_sz, bool copy, int ok_modes); /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3