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

FAT image mounting fixes #2278

Merged
merged 4 commits into from Feb 13, 2023
Merged

FAT image mounting fixes #2278

merged 4 commits into from Feb 13, 2023

Conversation

NicknineTheEagle
Copy link
Member

@NicknineTheEagle NicknineTheEagle commented Feb 12, 2023

  • Change FAT images to use modify time instead of creation time as file time returned by DOS function 57h and used by COPY command. Using creation time here makes no sense since creation time in FAT wasn't even implemented until MS-DOS 7.0 (Windows 95 DOS mode) and most old floppies don't have it set.
  • Implement setting file time in mounted FAT images. Right now, editing files does not update file time and new files have time set to epoch.
  • Proper r/o file attribute handling in FAT images as well as better feedback when the image is mounted in r/o mode.

@NicknineTheEagle NicknineTheEagle force-pushed the nn/drive-fat branch 2 times, most recently from 7f3aaad to 09a2e86 Compare February 12, 2023 21:12
@NicknineTheEagle NicknineTheEagle changed the title File time fixes for floppy images Floppy image mounting fixes Feb 12, 2023
@NicknineTheEagle NicknineTheEagle changed the title Floppy image mounting fixes FAT image mounting fixes Feb 12, 2023
src/dos/dos.cpp Outdated Show resolved Hide resolved
include/dos_inc.h Outdated Show resolved Hide resolved
@kcgen kcgen added the bug Something isn't working label Feb 13, 2023
src/dos/dos.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
include/dos_inc.h Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
Copy link
Member

@kcgen kcgen left a comment

Choose a reason for hiding this comment

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

Looking good @NicknineTheEagle! Just three comments left fro me.

src/dos/drive_fat.cpp Outdated Show resolved Hide resolved
Copy link
Member

@kcgen kcgen left a comment

Choose a reason for hiding this comment

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

Can't see anything else; thanks @NicknineTheEagle.
Also covers @johnnovak's feedback, so I think we're set.

@kcgen kcgen merged commit 1f6280a into main Feb 13, 2023
@delete-merged-branch delete-merged-branch bot deleted the nn/drive-fat branch February 13, 2023 21:30
@johnnovak johnnovak added the DOS Issues related to DOS integration or DOS commands label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DOS Issues related to DOS integration or DOS commands
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants