aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/vfs.c
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/user/vfs.c
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/user/vfs.c')
-rw-r--r--src/kernel/user/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/vfs.c b/src/kernel/user/vfs.c
index 995bfbc..5ba2064 100644
--- a/src/kernel/user/vfs.c
+++ b/src/kernel/user/vfs.c
@@ -245,7 +245,7 @@ bool fs_create(fs_t *fs, const char* file, int type) {
return ret;
}
-bool fs_unlink(fs_t *fs, const char* file) {
+bool fs_delete(fs_t *fs, const char* file) {
char name[DIR_MAX];
fs_node_t* n = fs_walk_path_except_last(&fs->root, file, name);
@@ -256,7 +256,7 @@ bool fs_unlink(fs_t *fs, const char* file) {
if (x != 0) return false;
}
- bool ret = n->ops->unlink && n->ops->unlink(n->data, name);
+ bool ret = n->ops->delete && n->ops->delete(n->data, name);
unref_fs_node(n);
return ret;
}