YAMAMOTO Takashi
c9f3b3a7f1
littelfs: deal with block devices w/o ioctl
...
Note: Some block devices has ioctl == NULL. eg. drivers/loop
2022-04-11 13:38:26 +03:00
Xiang Xiao
37d7298f34
fs/littlefs: Convert the lfs_file_size error code to POSIX's
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-29 10:11:13 +08:00
Jiuzhu Dong
1146ff2f61
littlefs: unify lfs error code to nuttx
...
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2022-03-29 10:11:13 +08:00
zhouliang3
1f53a058fa
nuttx:Change fs strncpy to strlcpy to avoid losing'\0'
...
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
2021-12-30 18:06:00 +08:00
anjiahao
9b52e4e311
littlefs:fix rmdir can remove a file
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2021-10-19 00:12:45 -05:00
mi
21316466d2
fs/littlefs: improve littlefs flash block erase balance performance
2021-08-14 11:21:44 -07:00
Xiang Xiao
177e1ced3f
Revert "mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE"
...
to simplify flt and partion layer implementation
This reverts commit 2e49e1bc5c
.
2021-08-12 08:01:29 -03:00
Xiang Xiao
307cc61893
fs: Add fchstat and chstat callback into mountpt_operations
...
and implement all status related change function. the individual
file system change will provide in other upcoming patchset.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8fde9db8eba9586e9c8da078b67e020c26623cf4
2021-07-29 06:33:49 -03:00
hujie1
025bddfc6c
nuttx: littlefs_close should return value bugfix
...
N/A
Change-Id: I5fea016fe01ac0e87ddeabdae67d36ab4125ea55
2021-07-12 10:05:49 -03:00
Xiang Xiao
2e49e1bc5c
mtd: Add MTDIOC_FLUSH IOCTL like MTDIOC_XIPBASE
...
since the old design reuse BIOC_FLUSH for
MTD device which make some confusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-06-15 13:26:45 -03:00
Xiang Xiao
866fe646aa
vfs/lfs: Simplify the lookahead_size equation
...
the final result is same(keep 8 bytes alignment)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I664879960c898a7f1518236b24a2b3ee8a9998d0
2021-04-03 21:00:41 +01:00
Xiang Xiao
b2563b99ca
fs/littlefs: Suppport the duplication function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I64191bdeab3723b22476d27c44852493eed1b07e
2021-03-23 08:34:09 +01:00
Xiang Xiao
2c7faade49
fs/lfs: Remove semret temporary variable
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2df74c7d42fac25c4b010e6b10c2af36f555c480
2021-02-26 10:45:00 +00:00
Xiang Xiao
ac528203fe
fs/lfs: lfs_file_sync() when littlefs_open
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Change-Id: I8935f7aee414580174141f4b114b5faf03ffafd5
2021-02-26 10:45:00 +00:00
Xiang Xiao
9dff16e0e4
fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ieaf325c899d1c349d64dfa15bddcc32afd1fce42
2020-07-10 21:30:02 +01:00
liuhaitao
fe0ba38580
fs/littlefs: upgrade littlefs to v2.2.1
...
Since littlefs is in active development, it's not a good idea to use its
source code files directly. So upgrade littlefs v2.2.1 by using the littlefs
tar.gz release package instead.
Change-Id: I16d9cf0b6bca700a54ca86ed11d7c8c7f27a898f
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-04-23 09:31:21 -06:00
Ouss4
ba8bc4c80c
fs/: Check return of nxsem_wait_uninterruptible.
2020-03-30 08:08:07 -06:00
Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Gregory Nutt
bd3cc792ff
fs/: Run all .c files under fs/ through tools/nxstyle.
2019-10-27 11:48:14 -06:00
Xiang Xiao
41ed2e153a
fs/littlefs/lfs_vfs.c: Lookahead should use bit unit not byte unit.
2019-03-19 08:21:17 -06:00
Xiang Xiao
b9c55919b2
fs/littlefs/lfs_vfs.c: Fix typographical errors in the VFS wrapper.
2019-01-29 07:39:25 -06:00
Xiang Xiao
af5e479fb5
fs/littlefs: VFS wrapper improvement: (1) Support block device interface, (2) support ioctl, stat and sync file operation, (3) support forceformat and autoformat option, (4) update file->f_pos and dir->fd_position, (5)remote the internal struct from dir, and (6) emove mtd byte read/write requirement.
2019-01-27 12:31:28 -06:00
Gregory Nutt
444ff759cd
fs/littlefs: Make all struct and enum names conform to the NuttX coding standard.
2019-01-10 06:37:53 -06:00
Gregory Nutt
ae7646ee91
fs/littlefs: Correct some additional coding style problems reported by tools/nxstyle.c. Not all are easily fixed, however, due to some unusual parameter passing using by the original author.
2019-01-09 17:34:48 -06:00
Gregory Nutt
61d92c216a
fs/littlefs: Make sure that ARM is included in BSD license.
2019-01-09 15:00:37 -06:00
lihaichen
87a5e4cd2d
Addes the ARM mbed littlefs to NuttX
...
Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>
fs/littlefs: Fix some compilation errors.
fs/littlefs: Brings code a little closer to NuttX coding standard. Not 100%, but closer.
fs/littlefs: Convert all C++ style comments to C comments.
Author: lihaichen <li8303@163.com>
fs/littlefs: Adds port of the mbed littlefs.
depends on !DISABLE_MOUNTPOINT && MTD_BYTE_WRITE
register_mtddriver("/dev/w25", mtd, 0755, NULL);
mount("/dev/w25", "/w25", "littlefs", 0, NULL);
2019-01-09 14:26:51 -06:00