[riot-notifications] [RIOT-OS/RIOT] pkg/fs: set VFS params by fs, not by the application (#13866)

benpicco notifications at github.com
Mon May 18 00:54:49 CEST 2020


@benpicco commented on this pull request.



> @@ -3,3 +3,8 @@ INCLUDES += -I$(PKGDIRBASE)/littlefs
 ifneq (,$(filter littlefs_fs,$(USEMODULE)))
   DIRS += $(RIOTBASE)/pkg/littlefs/fs
 endif
+
+# Set vfs file and dir buffer sizes
+CFLAGS += -DVFS_FILE_BUFFER_SIZE=56 -DVFS_DIR_BUFFER_SIZE=44
+# Reduce LFS_NAME_MAX to 31 (as VFS_NAME_MAX default)
+CFLAGS += -DLFS_NAME_MAX=31

`littlefs2/lfs.h` doesn't include `vfs.h` - we could patch it though.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13866#discussion_r426314111
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200517/5d859b8c/attachment.htm>


More information about the notifications mailing list