projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test for ticket system, bug #3
[bertos.git]
/
fs
/
battfs.c
diff --git
a/fs/battfs.c
b/fs/battfs.c
index d17bc372882d9860bbb71e336c3188aaaed3fa91..fd8fe1c6761b6cabdbb5c65a4eac8bba894c05b3 100644
(file)
--- a/
fs/battfs.c
+++ b/
fs/battfs.c
@@
-681,6
+681,14
@@
static pgcnt_t *findFile(BattFsSuper *disk, inode_t inode)
return NULL;
}
return NULL;
}
+/**
+ * \return true if file \a inode exists on \a disk, false otherwise.
+ */
+bool battfs_fileExists(BattFsSuper *disk, inode_t inode)
+{
+ return findFile(disk, inode) != NULL;
+}
+
/**
* Count size of file \a inode on \a disk, starting at pointer \a start
* in disk->page_array. Size is written in \a size.
/**
* Count size of file \a inode on \a disk, starting at pointer \a start
* in disk->page_array. Size is written in \a size.