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/devfs.h | 8 -------- src/kernel/include/nullfs.h | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 src/kernel/include/devfs.h (limited to 'src/kernel/include') diff --git a/src/kernel/include/devfs.h b/src/kernel/include/devfs.h deleted file mode 100644 index 0dee246..0000000 --- a/src/kernel/include/devfs.h +++ /dev/null @@ -1,8 +0,0 @@ -#pragma once - -#include - -fs_t* init_devfs(); - - -/* vim: set ts=4 sw=4 tw=0 noet :*/ 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