mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
boot/nxboot/loader/flash.c: open partition with O_DIRECT flag
There is no need to use buffers in a bootloader. We expect a sequential access, therefore we just need to erase the erase page before writing to it for the first time, which is something FTL layer already takes care of. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
parent
2de49b8b22
commit
beacf792fa
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ int flash_partition_open(const char *path)
|
|||
{
|
||||
int fd;
|
||||
|
||||
fd = open(path, O_RDWR);
|
||||
fd = open(path, O_RDWR | O_DIRECT);
|
||||
if (fd < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "Could not open %s partition: %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue