Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatfs open("xx",O_CREAT|O_WRONLY,0666) fails (IDFGH-8839) #1817

Closed
maierkomor opened this issue Apr 4, 2018 · 3 comments
Closed

fatfs open("xx",O_CREAT|O_WRONLY,0666) fails (IDFGH-8839) #1817

maierkomor opened this issue Apr 4, 2018 · 3 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@maierkomor
Copy link

An open call to create a file on a fatfs on spi flash fails with "no such file or directory". In contrast, fopen works without a problem.

@Reiner1210
Copy link

Reiner1210 commented Apr 4, 2018

you use xx ? Or /sdcard/xx ? You can leave out the permission flags

@FayeY
Copy link
Collaborator

FayeY commented Apr 10, 2018

@maierkomor , any update? Is this issue solved now?

@FayeY FayeY closed this as completed Apr 24, 2018
@comp500
Copy link

comp500 commented Nov 29, 2022

This is still an issue; the fat_mode_conv function handles O_CREAT with O_EXCL or O_TRUNC correctly, but falls back to FA_OPEN_EXISTING (failing when the file doesn't exist) with just O_CREAT.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 29, 2022
@github-actions github-actions bot changed the title fatfs open("xx",O_CREAT|O_WRONLY,0666) fails fatfs open("xx",O_CREAT|O_WRONLY,0666) fails (IDFGH-8839) Nov 29, 2022
@espressif-bot espressif-bot assigned adokitkat and unassigned pacucha42 Feb 6, 2023
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Status: Opened Issue is new and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development labels Feb 6, 2023
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened Issue is new labels Mar 31, 2023
@espressif-bot espressif-bot added Status: In Progress Work is in progress Status: Reviewing Issue is being reviewed and removed Status: Selected for Development Issue is selected for development Status: In Progress Work is in progress labels Apr 3, 2023
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Reviewing Issue is being reviewed labels Apr 18, 2023
espressif-bot pushed a commit that referenced this issue Apr 18, 2023
fatfs 'open' with only O_CREAT flag fails to creat new file

Closes #1817
espressif-bot pushed a commit that referenced this issue May 7, 2023
fatfs 'open' with only O_CREAT flag fails to creat new file

Closes #1817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

8 participants