Skip to content

Stricter Fat32 volume validation, fix Fat32 MkDir when volume name matches new directory name#160

Closed
apires wants to merge 3 commits into
diskfs:masterfrom
apires:fix-fat32-mkdir
Closed

Stricter Fat32 volume validation, fix Fat32 MkDir when volume name matches new directory name#160
apires wants to merge 3 commits into
diskfs:masterfrom
apires:fix-fat32-mkdir

Conversation

@apires
Copy link
Copy Markdown

@apires apires commented Dec 2, 2022

This patch adds a few things:

  • Validates volume name a bit closer to the fat spec
  • (bug) When we're walking a directory for mkdir we compare what we're looking for by directory entry nodes, rather than on a file/directory basis. This leaves the root volume entry as an unhandled case, specially if the volume name matches the name of the file we're trying to create. This patchset skips the the root directory node in this traversal.

This patch adds a few things:
 - Validates volume name a bit closer to the fat spec
 - (bug) When we're walking a directory for mkdir we compare what we're looking for by directory entry nodes, rather than on a file/directory basis. This leaves the root volume entry as an unhandled case, specially if the volume name matches the name of the file we're trying to create. This patchset skips the the root directory node in this traversal.
Copy link
Copy Markdown
Collaborator

@deitch deitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you.

@deitch
Copy link
Copy Markdown
Collaborator

deitch commented Dec 5, 2022

Some lint errors to clean up.

@github-actions
Copy link
Copy Markdown

This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions Bot added the Stale label May 17, 2026
@github-actions
Copy link
Copy Markdown

This pull request was closed because it has been stale for 5 days with no activity.

@github-actions github-actions Bot closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants