Restricted LFS_FILE_MAX to signed 32-bits, <2^31, <=2147483647

I think realistically no one is using this. It's already only partially
supported and untested.

Worst case, if someone does depend on this we can always revert.
This commit is contained in:
Christopher Haster
2024-01-16 23:40:30 -06:00
parent 1fefcbbcba
commit 6691718b18
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -4112,8 +4112,8 @@ static int lfs_rawremoveattr(lfs_t *lfs, const char *path, uint8_t type) {
#error "Invalid LFS_NAME_MAX, must be <= 1022"
#endif
#if LFS_FILE_MAX > 4294967295
#error "Invalid LFS_FILE_MAX, must be <= 4294967295"
#if LFS_FILE_MAX > 2147483647
#error "Invalid LFS_FILE_MAX, must be <= 2147483647"
#endif
#if LFS_ATTR_MAX > 1022