mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-11-01 16:14:13 +01:00
Compare commits
1 Commits
fix-migrat
...
fix-readme
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab56dc5a8b |
@@ -110,7 +110,7 @@ directory functions, with the deviation that the allocation of filesystem
|
||||
structures must be provided by the user.
|
||||
|
||||
All POSIX operations, such as remove and rename, are atomic, even in event
|
||||
of power-loss. Additionally, no file updates are not actually committed to
|
||||
of power-loss. Additionally, file updates are not actually committed to
|
||||
the filesystem until sync or close is called on the file.
|
||||
|
||||
## Other notes
|
||||
|
||||
4
lfs.c
4
lfs.c
@@ -4614,7 +4614,7 @@ int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {
|
||||
id, entry1.d.nlen), name},
|
||||
{LFS_MKTAG(
|
||||
isdir ? LFS_TYPE_DIRSTRUCT : LFS_TYPE_CTZSTRUCT,
|
||||
id, sizeof(entry1.d.u)), &entry1.d.u}));
|
||||
id, sizeof(&entry1.d.u)), &entry1.d.u}));
|
||||
lfs1_entry_fromle32(&entry1.d);
|
||||
if (err) {
|
||||
goto cleanup;
|
||||
@@ -4637,7 +4637,7 @@ int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg) {
|
||||
|
||||
lfs_pair_tole32(dir2.pair);
|
||||
err = lfs_dir_commit(lfs, &dir2, LFS_MKATTRS(
|
||||
{LFS_MKTAG(LFS_TYPE_SOFTTAIL, 0x3ff, 8),
|
||||
{LFS_MKTAG(LFS_TYPE_SOFTTAIL, 0x3ff, 0),
|
||||
dir1.d.tail}));
|
||||
lfs_pair_fromle32(dir2.pair);
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user