Support filesystems with invalid inode numbers on individual files
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2026-07-30 16:20:26 +02:00
parent 31011d34c3
commit c43d78e243
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.
*/