add a comment on littlefs_attr_s to explain what it is

i couldn't find any documenation about this attribute.
this comment is purely based on my reading of the code.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
This commit is contained in:
YAMAMOTO Takashi
2025-04-03 11:19:02 +09:00
committed by Xiang Xiao
parent 02c9030e88
commit 90e9b2426d

View File

@@ -82,6 +82,14 @@ struct littlefs_mountpt_s
struct lfs lfs;
};
/* NuttX specific file attributes.
*
* If CONFIG_FS_LITTLEFS_ATTR_UPDATE is enabled, we store this structure
* on-disk as a littlefs user attribute with type=0.
*
* Note: the fields of this structure are in the host-endian, even on-disk.
*/
struct littlefs_attr_s
{
uint32_t at_ver; /* For the later extension */