diff options
author | Nao Pross <naopross@thearcway.org> | 2017-09-10 17:50:20 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-09-10 17:50:20 +0200 |
commit | 828c21bd4dc3b168a3182458ca167d742a192bd6 (patch) | |
tree | 81a0616d958d1d26bc2035e303ff84fc17ed624b /sw/z80/kernel/include/fs/dirent.h | |
parent | partial implementation for ctc drivers and memory management (diff) | |
parent | macro fix (diff) | |
download | z80uPC-828c21bd4dc3b168a3182458ca167d742a192bd6.tar.gz z80uPC-828c21bd4dc3b168a3182458ca167d742a192bd6.zip |
Merge remote-tracking branch 'origin/atlas' into naopross
Diffstat (limited to 'sw/z80/kernel/include/fs/dirent.h')
-rw-r--r-- | sw/z80/kernel/include/fs/dirent.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sw/z80/kernel/include/fs/dirent.h b/sw/z80/kernel/include/fs/dirent.h index ea5699b..2fd224a 100644 --- a/sw/z80/kernel/include/fs/dirent.h +++ b/sw/z80/kernel/include/fs/dirent.h @@ -1,13 +1,17 @@ -#ifndef DIRENT_H -#define DIRENT_H +#ifndef __DIRENT_H__ +#define __DIRENT_H__ #include "types.h" struct dirent { - ino_t i_number; // inode referred + ino_t inode; // inode referred uint8_t name_size; // size of the name char name[]; // name of the referred inode -} +}; -#endif +/* if inode is FS_INO_NULL, then the dirent is a memory leak */ +/* Warning: dirent leaks are generated by rm or rmdir operations */ +/* Filesystem must be periodically checked and cleaned */ + +#endif // __DIRENT_H__ |