You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we update to the latest LFS version, it may use a filesystem created with the privious version.
So I would like, after mount, get the disk version of the mounted filesystem and than call the makeconsisten function to change the disk version of it..
Am I mistaken or is there no function to get disk version of the underlaying filesystem?
Thomas
The text was updated successfully, but these errors were encountered:
The intention was that lfs_fs_mkconsistent could be called unconditionally, it does no work if the filesystem is already consistent/version bumped. Also note lfs_fs_mkconsistent is called implicitly by all write operations. You don't need to call it yourself unless you want to force littlefs to write the minor version bump.
But I can see how accessing the current minor version would be handy. We can add this.
The first place that comes to mind is lfs_fs_stat in #753, though that PR is stalled, so maybe we should bring in lfs_fs_stat in a separate PR.
Hi
When we update to the latest LFS version, it may use a filesystem created with the privious version.
So I would like, after mount, get the disk version of the mounted filesystem and than call the makeconsisten function to change the disk version of it..
Am I mistaken or is there no function to get disk version of the underlaying filesystem?
Thomas
The text was updated successfully, but these errors were encountered: