Thanks - but, unfortunately, that setting is enabled. It is odd, to me, that a FAT FS on Ramdisk (with FAT FS timestamps enabled) doesn't show timestamps either (using ls -l). I am getting the filestamps for LittleFS using "stat", and st_atim, st_mtim and st_ctim all have the same value.

Here are my LittleFS settings:

CONFIG_FS_LITTLEFS=y
CONFIG_FS_LITTLEFS_PROGRAM_SIZE_FACTOR=1
CONFIG_FS_LITTLEFS_READ_SIZE_FACTOR=1
CONFIG_FS_LITTLEFS_BLOCK_SIZE_FACTOR=1
CONFIG_FS_LITTLEFS_CACHE_SIZE_FACTOR=1
CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE=0
CONFIG_FS_LITTLEFS_BLOCK_CYCLE=200
CONFIG_FS_LITTLEFS_NAME_MAX=32
CONFIG_FS_LITTLEFS_FILE_MAX=2147483647
CONFIG_FS_LITTLEFS_ATTR_MAX=1022
CONFIG_FS_LITTLEFS_LOCAL_PATCHES=y
CONFIG_FS_LITTLEFS_ATTR_UPDATE=y
CONFIG_FS_LITTLEFS_GETPATH=y
CONFIG_FS_LITTLEFS_VERSION="v2.5.1"
# CONFIG_FS_LITTLEFS_MULTI_VERSION is not set

On 23/09/2025 16:58, Laczen JMS wrote:
Hi Tim,

Have you enabled "CONFIG_FS_LITTLEFS_ATTR_UPDATE" ?

Op di 23 sep 2025 om 17:26 schreef Tim Hardisty <[email protected]>:
I send syslog output to an MTD formatted with LittleFS. The syslog
output itself has correct timestamps from my board's RTC, but I must be
doing something dumb either with NuttX or LittleFS as the syslog file
itself has a default timestamp of 21st January 1970 regardless of when a
new file is created.

And an 'ls -l' at NSH doesn't show timestamps either?

Can someone advise? I'm sure I'm not doing something REALLY obvious!!

PS - same is true of a LittleFS formatted EEPROM device too, and also
for a FAT formatted ramdisk...

Reply via email to