This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 90e9b2426d add a comment on littlefs_attr_s to explain what it is 90e9b2426d is described below commit 90e9b2426d54682070b0fcc38ad5415bbf77f733 Author: YAMAMOTO Takashi <yamam...@midokura.com> AuthorDate: Thu Apr 3 11:19:02 2025 +0900 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 <yamam...@midokura.com> --- fs/littlefs/lfs_vfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fs/littlefs/lfs_vfs.c b/fs/littlefs/lfs_vfs.c index bbfe2644f8..4fd3336c3c 100644 --- a/fs/littlefs/lfs_vfs.c +++ b/fs/littlefs/lfs_vfs.c @@ -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 */