From 9004213b4422e7a43c8ec8aac99d4ecc92553f20 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 12 Feb 2015 22:35:07 +0100 Subject: Begin implementation of nullfs. --- src/kernel/include/nullfs.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/kernel/include/nullfs.h') diff --git a/src/kernel/include/nullfs.h b/src/kernel/include/nullfs.h index ba6a9c8..6ab8760 100644 --- a/src/kernel/include/nullfs.h +++ b/src/kernel/include/nullfs.h @@ -7,13 +7,11 @@ // - d : allow deletion of arbitrary nodes // - m : allow move operation -typedef struct nullfs nullfs_t; - void register_nullfs_driver(); -nullfs_t* as_nullfs(fs_t *fs); - -bool nullfs_add_node(nullfs_t *f, const char* name, fs_node_ptr data, fs_node_ops_t *ops); -bool nullfs_add_ram_file(nullfs_t *f, const char* name, char* data, size_t init_sz, bool copy, int ok_modes); +// These calls can be done on the fs_t corresponding to a nullfs +// Of course they fail if the fs is not actually a nullfs. +bool nullfs_add_node(fs_t *f, const char* name, fs_node_ptr data, fs_node_ops_t *ops); +bool nullfs_add_ram_file(fs_t *f, const char* name, char* data, size_t init_sz, bool copy, int ok_modes); /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3