Support filesystems with invalid inode numbers on individual files

This commit is contained in:
Andrea Mazzoleni 2026-07-30 16:20:26 +02:00
parent 1f496e61c6
commit ec46bafc3b
10 changed files with 99 additions and 76 deletions

10
os/os.h
View file

@ -195,6 +195,16 @@ int os_validate_exec_input(const char* str);
/****************************************************************************/
/* fs */
/**
* Invalid inode number.
*
* Value 0 is used to represent an invalid or unavailable inode number.
* While 0 is not strictly guaranteed to be invalid by standards, in practice
* it is never used for valid files. And even if a file happens to have inode 0,
* the program will simply process that specific file without using its inode.
*/
#define INODE_INVALID 0
/**
* Physical offset not yet read.
*/