YAMAMOTO Takashi
0dee21503d
fs/spiffs/src/spiffs_mtd.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
be013cc338
fs/spiffs/src/spiffs_gc.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
a6b4c1b755
fs/spiffs/src/spiffs_core.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
88bc46f4a6
fs/spiffs/src/spiffs_vfs.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
c0b4076d3b
fs/userfs/fs_userfs.c: Fix syslog formats
2020-11-24 22:31:33 -08:00
YAMAMOTO Takashi
4911b1121b
fs/cromfs/fs_cromfs.c: Fix a syslog format
2020-11-24 22:31:33 -08:00
Matias N
d5b6ec450f
Parallelize depend file generation
2020-11-22 09:02:59 -03:00
YAMAMOTO Takashi
13e55ce0d4
fs/romfs/fs_romfsutil.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
67fbbf935b
fs/romfs/fs_romfs.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
ae45a66d70
fs/nxffs/nxffs_write.c: Fix a syslog format
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
d543f7f16f
fs/nxffs/nxffs_stat.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
7df9d89d54
fs/nxffs/nxffs_reformat.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
d28d5a29c2
fs/nxffs/nxffs_reformat.c: Appease nxstyle
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
d22c8a2a31
fs/nxffs/nxffs_read.c: Fix a syslog format
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
3f2390e781
fs/nxffs/nxffs_read.c: Appease nxstyle
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
889c33277c
fs/nxffs/nxffs_pack.c: Fix a syslog format
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
660db6b248
fs/nxffs/nxffs_pack.c: Appease nxstyle
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
99407f4ab9
fs/nxffs/nxffs_open.c: Fix a syslog format
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
e1a8f8a736
fs/nxffs/nxffs_open.c: Appease nxstyle
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
35c30c2c4a
fs/nxffs/nxffs_cache.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
042881eed3
fs/nxffs/nxffs_cache.c: Appease nxstyle
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
ac6b08c8e9
fs/spiffs/src/spiffs_mtd.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
38e6f68535
fs/spiffs/src/spiffs_core.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
3aa29095b2
fs/spiffs/src/spiffs_vfs.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
f940c3d7a4
fs/fat/fs_fat32util.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
8ce63a47fc
fs/vfs/fs_epoll.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
ad0ee4fbeb
fs/binfs/fs_binfs.c: Fix a syslog format error
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
da1b593485
fs/romfs/fs_romfs.c: Fix syslog format errors
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
bc9e28eb35
fs/mmap/fs_mmap.c: Fix a syslog format error
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
0b48fed6ee
fs/spiffs/src/spiffs_core.c: Appease nxstyle
2020-11-20 22:22:53 -08:00
Brennan Ashton
9393572aea
Revert "fs/nxffs: Fix scan good block slowly and scan an invalid block"
...
This reverts commit 97be116a39
.
This commit broke nxffs. This leaves the first block as empty which
then exposes another bug where when the pack is called because we
have reached the end of flash and need to look for deleted inodes
we search the first block find no inode and assume that there
are no more inodes. This then results in corrupting the filesystem
by writing over existing inodes.
This can be seen by runing the sim:nxffs configuration.
Prior to this commit the first pass of writing files would look like
this:
NXFFS Dump:
BLOCK:OFFS TYPE STATE LENGTH
0:5 INODE OK 2680
0:78 DATA OK 424
1:5 DATA OK 497
2:5 DATA OK 497
3:5 DATA OK 497
4:5 DATA OK 497
5:5 DATA OK 268
5:283 INODE OK 7410
5:425 DATA OK 77
6:5 DATA OK 497
With this commit:
NXFFS Dump:
BLOCK:OFFS TYPE STATE LENGTH
0:0 BLOCK ERASED 512
1:5 INODE OK 6394
1:39 DATA OK 463
2:5 DATA OK 497
3:5 DATA OK 497
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-19 18:08:41 -08:00
dongjiuzhu
c22ab31728
fs: flashback to release all file descriptors in group to increase debugging time.
...
Change-Id: I47851f7e679addf36077c491ef7d1a5a29d1c2be
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-11-17 18:54:31 -08:00
YAMAMOTO Takashi
4f514f41d4
fs/procfs/fs_procfsiobinfo.c: Add a missing entry for can
...
Found by the following compiler warning:
procfs/fs_procfsiobinfo.c: In function 'iobinfo_read':
procfs/fs_procfsiobinfo.c:344:20: error: '%-16s' directive argument is null [-Werror=format-overflow=]
344 | linesize = snprintf(iobfile->line, IOBINFO_LINELEN,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 | "\n%-16s%16lu%16lu\n",
| ~~~~~~~~~~~~~~~~~~~~~~
346 | g_iob_user_names[IOBUSER_GLOBAL],
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
347 | (unsigned long)userstats->totalconsumed,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348 | (unsigned long)userstats->totalproduced);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
95a9843284
fs/procfs/fs_procfsproc.c: Fix prinf format warnings
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
f1bc94bd32
fs/procfs/fs_procfscpuload.c: Fix printf format warnings
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
48765a7160
fs/smartfs/smartfs_procfs.c: Fix printf format warnings
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
008d411fc3
fs/procfs/fs_procfsproc.c: Fix a printf format warning
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
08b4cb6517
fs/procfs/fs_procfsuptime.c: Fix a printf format
2020-11-16 08:29:00 -08:00
YAMAMOTO Takashi
711371a855
fs/procfs/fs_procfsiobinfo.c: Appease nxstyle
2020-11-16 05:46:53 -08:00
chao.an
6aee468d72
eventfd: remove the unique minor limit
...
The unique minor limit of 255 will overflow easily in
some scenarios where eventfd needs to be create/destroy
frequently:
while (1)
{
fd = eventfd(0, 0); // minor++
sleep(1);
close(fd);
}
remove the unique minor limit.
Change-Id: I0ea1c825ce9b542c883166cb3e72574455ffdd0d
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-11 18:26:59 -08:00
Xiang Xiao
84b90e00f0
libc/stdio: Preallocate the stdin, stdout and stderr
...
to handle the uninitialized stdin/stdout/stderr gracefully
report here:
https://github.com/apache/incubator-nuttx/issues/2203
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-11 09:56:10 -08:00
Juha Niskanen
ca7a7ccbeb
Fix some typos in comments
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-11-08 18:58:20 +01:00
Juha Niskanen
1577726f05
fs/inode/fs_fileopen.c: use nx_close instead of close
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-10-28 09:11:50 -07:00
dongjiuzhu
d452a05910
pollnotify: we should send poll events before semaphore incrementes.
...
There is a good case on sim platform:
When we input some cmd and click enter key to start application in terminal,
this context will change to application from IDLE loop. Althrough entey key '\r'
has been received to recv buffer and complete post semaphore of reader, but
pollnotify may not be called because context change. So when application run
poll function, because no events happend and poll enter wait, context will
again change to IDLE loop, this pollnotify of IDLE loop will run to send poll
events, poll function of applicaton will wake up. It's wrong!
Change-Id: I812a889f2e90781a9c3cb4b0251cccc4d32bebd1
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-26 08:27:09 -03:00
dongjiuzhu
bcf3381d06
epoll_create: mofidy return value for epoll_create1
...
Change-Id: I422d7640c37105e1120db18b29d56547f447846f
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-10-25 11:06:37 -07:00
Xiang Xiao
eb4121ce38
Change all 'Nuttx' to 'NuttX'
...
Unify the naming convention
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-10-20 01:45:06 -07:00
zhongan
5aa0e302a4
fs: add missing macro 'CONFIG_FS_HOSTFS' for 'NODFS_SUPPORT'.
...
When just enable 'CONFIG_FS_HOSTFS', NODFS_SUPPORT may not enable.
Change-Id: I8317f18bf3ceae873e29c027561948c17b4aab38
Signed-off-by: zhongan <zhongan@xiaomi.com>
2020-10-17 23:22:35 +08:00
Nathan Hartman
80ce7800a9
Sources and Docs: Fix typos and nxstyle issues
...
Documentation/contributing/coding_style.rst:
* Fix repeated words: ("this this").
* Remove trailing spaces.
boards/z80/z80/z80sim/README.txt:
* Fix repeated words: ("this this") and rewrap lines.
graphics/Kconfig,
libs/libc/math/Kconfig:
* Fix repeated words: ("this this").
arch/arm/src/armv7-a/arm_assert.c,
arch/arm/src/armv7-r/arm_assert.c,
arch/arm/src/imxrt/imxrt_enet.c,
arch/arm/src/kinetis/kinetis_enet.c,
arch/arm/src/kinetis/kinetis_flexcan.c,
arch/arm/src/s32k1xx/s32k1xx_enet.c,
arch/arm/src/s32k1xx/s32k1xx_flexcan.c,
arch/arm/src/stm32/stm32_pwm.c,
arch/arm/src/stm32h7/stm32_pwm.c,
arch/arm/src/stm32l4/stm32l4_pwm.c,
arch/renesas/src/rx65n/rx65n_usbdev.c,
binfmt/libnxflat/libnxflat_bind.c,
drivers/pipes/pipe_common.c,
net/igmp/igmp_input.c,
net/tcp/tcp_conn.c,
sched/sched/sched_roundrobin.c:
* Fix typo in comment ("this this").
arch/arm/src/cxd56xx/cxd56_usbdev.c,
arch/arm/src/lc823450/lc823450_usbdev.c:
* Fix typo in comment and rewrap lines.
arch/arm/src/imxrt/imxrt_usbdev.c,
arch/arm/src/stm32/stm32_dac.c,
arch/arm/src/stm32f0l0g0/stm32_pwm.c,
arch/arm/src/stm32f7/stm32_pwm.c,
arch/arm/src/tiva/lm/lm4f_gpio.h,
fs/nxffs/nxffs_write.c,
include/nuttx/analog/pga11x.h,
include/nuttx/usb/usbdev.h,
net/mld/mld_join.c:
* Fix typo in comment ("this this").
* Fix nxstyle issues.
2020-10-02 04:54:52 +02:00
Xiang Xiao
b422f49fa7
fs: Skip the enumeration of root directory in foreach_inode
...
ensure the behaviour same before:
commit b76c4672d6
(origin/root)
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Tue Sep 15 17:42:42 2020 +0800
vfs: Create a node as the root of pseudo file system
to remove the special process for root
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-30 12:26:57 +02:00
Xiang Xiao
66057a4612
fs: Add the relative path support
...
all functions which accept the path argument should support the relative path:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-09-24 03:13:27 -07:00