-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vfs: increase FATFS_VFS_FILE_BUFFER_SIZE (again) #20338
base: master
Are you sure you want to change the base?
Conversation
Ah I think I know what's going on - the struct is of course going to be padded. --- a/sys/include/vfs.h
+++ b/sys/include/vfs.h
@@ -66,9 +66,11 @@
#include <sys/types.h> /* for off_t etc. */
#include <sys/statvfs.h> /* for struct statvfs */
+#include "architecture.h"
#include "sched.h"
#include "clist.h"
#include "iolist.h"
+#include "macros/math.h"
#include "mtd.h"
#include "xfa.h"
@@ -279,12 +281,12 @@ extern "C" {
* @attention Put the check in the public header file (.h), do not put the check in the
* implementation (.c) file.
*/
-#define VFS_FILE_BUFFER_SIZE MAX5(FATFS_VFS_FILE_BUFFER_SIZE, \
+#define VFS_FILE_BUFFER_SIZE MATH_ALIGN(MAX5(FATFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS_VFS_FILE_BUFFER_SIZE, \
LITTLEFS2_VFS_FILE_BUFFER_SIZE,\
SPIFFS_VFS_FILE_BUFFER_SIZE, \
LWEXT4_VFS_FILE_BUFFER_SIZE \
- )
+ ), ARCHITECTURE_WORD_BYTES)
#endif
#ifndef VFS_NAME_MAX |
That's good yes! It is the right direction, but for |
Maybe |
Weird, does this only happen with exFAT support enabled? Then it might be that the 4 bytes need to be added to |
Yes, with |
And |
21a0c89
to
d8a7933
Compare
d8a7933
to
bf4bceb
Compare
Contribution description
With
_FATFS_FILE_CACHE
_FATFS_FILE_SEEK_PTR
_FATFS_FILE_EXFAT
the problem of #20297 is still present :/, so I increasedFATFS_VFS_FILE_BUFFER_SIZE
once again.Testing procedure
CPU_MODEL = samd51j20a
Issues/PRs references
#20297