8000 Make LittleFS filenames support full size (#2192) · TGralla/arduino-pico@ce45c65 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ce45c65

Browse files
Make LittleFS filenames support full size (earlephilhower#2192)
Support 255 character names, not just 32, in LittleFS filesystems.
1 parent 6d6433f commit ce45c65

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libraries/LittleFS/src/LittleFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <FS.h>
3030
#include <FSImpl.h>
3131

32-
#define LFS_NAME_MAX 32
32+
#define LFS_NAME_MAX 255
3333
#include "../lib/littlefs/lfs.h"
3434

3535
using namespace fs;

libraries/LittleFS/src/lfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Just have a stub here that redirects to the actual source file
33

44
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
5-
#define LFS_NAME_MAX 32
5+
#define LFS_NAME_MAX 255
66
#define LFS_NO_DEBUG
77
#define LFS_NO_WARN
88
#define LFS_NO_ERROR

libraries/LittleFS/src/lfs_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define LFS_NAME_MAX 32
1+
#define LFS_NAME_MAX 255
22
#define LFS_NO_DEBUG
33
#define LFS_NO_WARN
44
#define LFS_NO_ERROR

0 commit comments

Comments
 (0)
0