Skip to content

Conversation

@Koichi98
Copy link
Contributor

@Koichi98 Koichi98 commented Jul 1, 2025

Description

Implemented From trait for Fatfs Error type to VfsErrorKind.
I also have added some of the Fatfs Error variables to VfsErrorKind.
Since there's no way to distinguish file and directory "AlreadyExists" Error in Fatfs, I have deleted "FileExists" and "DirectoryExists" from VfsErrorKind. (We actually can distinguish file and directory in Fatfs too but we need to fix a lot to do that. Also, I don't think it's all that necessary to strictly differentiate between FileExists and DirectoryExists when returning error types.)

Related links

#549 (Fatfs Error type PR)
#548 (VfsError introducing PR)
#511

How was this PR tested?

Notes for reviewers

Koichi98 added 4 commits July 1, 2025 13:18
Signed-off-by: Koichi Imai <[email protected]>
Signed-off-by: Koichi Imai <[email protected]>
Signed-off-by: Koichi Imai <[email protected]>
@Koichi98 Koichi98 changed the base branch from main to fix/Vfserror_for_nostd July 1, 2025 05:12
@Koichi98 Koichi98 self-assigned this Jul 1, 2025
Base automatically changed from fix/Vfserror_for_nostd to main July 1, 2025 05:53
@Koichi98 Koichi98 marked this pull request as ready for review July 1, 2025 05:54
@Koichi98 Koichi98 changed the title feat(filesystem): Define From for Fatfs Error to VfsErrorKind feat(filesystem): define From trait for Fatfs Error to VfsErrorKind Jul 1, 2025
@Koichi98 Koichi98 changed the title feat(filesystem): define From trait for Fatfs Error to VfsErrorKind feat(filesystem): define From<Fatfs Error> trait for VfsErrorKind Jul 1, 2025
@Koichi98 Koichi98 requested review from veqcc and ytakano July 1, 2025 05:57
@ytakano ytakano merged commit 70ee7e3 into main Jul 1, 2025
1 check passed
@ytakano ytakano deleted the feat/from_for_fatfserror branch July 1, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants