a useful option

This commit is contained in:
2026-03-29 20:31:58 +02:00
parent 37cc73a21c
commit d7ca929a5f

View File

@@ -1051,6 +1051,8 @@ typedef struct nn_VFilesystem {
const char *label; const char *label;
size_t labellen; size_t labellen;
bool isReadOnly; bool isReadOnly;
// cost of a file entry when computed the spaceUsed
size_t fileCost;
// The maximum amount of directory entries. This is used to pre-allocate an array. // The maximum amount of directory entries. This is used to pre-allocate an array.
// It also helps against memory hogging attacks. // It also helps against memory hogging attacks.
size_t maxDirEntries; size_t maxDirEntries;