aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/vfs.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 15:20:09 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 15:20:09 +0100
commitbe645920ae72ae7d407e8d976506f617a7d40355 (patch)
treee0e5fe2d8a2571bf5f3ebef9d2323990279dec10 /src/kernel/include/vfs.h
parent15fd57adeaca5ad62fba20aa01c851a3ed01ee29 (diff)
downloadkogata-be645920ae72ae7d407e8d976506f617a7d40355.tar.gz
kogata-be645920ae72ae7d407e8d976506f617a7d40355.zip
Unlink function now called delete() (becaue that's what it does)
Diffstat (limited to 'src/kernel/include/vfs.h')
-rw-r--r--src/kernel/include/vfs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h
index 140365c..19f43db 100644
--- a/src/kernel/include/vfs.h
+++ b/src/kernel/include/vfs.h
@@ -56,8 +56,8 @@ typedef struct fs_handle {
// - nodes keep a reference to their parent
// - a FS node is either in memory (after one call to walk() on its parent), or not in memory
// it can be in memory only once : if it is in memory, walk() cannot be called on the parent again
-// - unlink() is expected to unlink the node from its parent (make it inaccessible) and delete
-// the corresponding data. It is guaranteed that unlink() is never called on a node that
+// - delete() is expected to unlink the node from its parent (make it inaccessible) and delete
+// the corresponding data. It is guaranteed that delete() is never called on a node that
// is currently in use. (different from posix semantics !)
// - the root node of a filesystem is created when the filesystem is created
// - dispose() is not called on the root node when a filesystem is shutdown
@@ -66,7 +66,7 @@ typedef struct {
bool (*open)(fs_node_ptr n, int mode, fs_handle_t *s); // open current node
bool (*stat)(fs_node_ptr n, stat_t *st);
bool (*walk)(fs_node_ptr n, const char* file, struct fs_node *node_d);
- bool (*unlink)(fs_node_ptr n, const char* file);
+ bool (*delete)(fs_node_ptr n, const char* file);
bool (*move)(fs_node_ptr dir, const char* old_name, struct fs_node *new_parent, const char *new_name);
bool (*create)(fs_node_ptr n, const char* name, int type); // create sub-node in directory
int (*ioctl)(fs_node_ptr n, int command, void* data);
@@ -138,7 +138,7 @@ void ref_fs(fs_t *fs);
void unref_fs(fs_t *fs);
bool fs_create(fs_t *fs, const char* file, int type);
-bool fs_unlink(fs_t *fs, const char* file);
+bool fs_delete(fs_t *fs, const char* file);
bool fs_move(fs_t *fs, const char* from, const char* to);
bool fs_stat(fs_t *fs, const char* file, stat_t *st);
int fs_ioctl(fs_t *fs, const char* file, int command, void* data);