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

Query: Read-only .adf files (Host side) can be made writeable in Quickstart/Floppy drives panels? #1578

Closed
giantclambake opened this issue Jan 9, 2025 · 3 comments

Comments

@giantclambake
Copy link

This starts here .... https://eab.abime.net/showthread.php?t=119530

I could not recreate the warning, however in testing I noticed...

gcb@gallah:~$ ls -l Shift.adf
-r--r--r-- 1 gcb gcb  901120 Jun 28  2024  Shift.adf

By rights, one shouldn't be able to make this .adf file writable from the GUI (because..) as far as the Host is concerned, the file is read-only... however one can disable the Write-protected widget regardless ??

Expected: the Write-protected widget to always be set when the Amiga <file> is read-only on the Host?

Is that correct, or is this some kind of bug?

TIA

@giantclambake
Copy link
Author

Additional: I have seen this before, wrt .hdf files contained in the AF10 distrib...ie;

gcb@gallah:~/AF10/hdf$ ls -l
total 15372
-r-xr-xr-x 1 gcb gcb     454 Aug 31  2019 ReadMe.txt
-r-xr-xr-x 1 gcb gcb 3145728 Apr 10  2018 workbench-135.hdf
-r-xr-xr-x 1 gcb gcb 6291456 Apr 30  2021 workbench-211.hdf
-r-xr-xr-x 1 gcb gcb 6291456 Apr  5  2021 workbench-311.hdf

If you spin-up an A4000 config, and load the "workbench-311.hdf" file, it presents as;

ex

Note: Read/Write checkbox is active.

This is a misnomer of course ~ if you boot that emulation construct to Workbench, and try to change & save any Prefs, you get the AmigaDOS warning of disk being write protected ... which is actually correct (at the $host level ~ disk file image is read-only)...

The apparent contradiction is not ideal ~ does amiberry even check the <file> flags at all? (just wrt floppy/HDD images)

...not something I ever worried about, but seeing as we're here ;)

@midwan
Copy link
Collaborator

midwan commented Jan 9, 2025

The file properties on the host filesystem are not checked. These settings are meant to control what is set under the emulated environment only.

@giantclambake
Copy link
Author

Thanks, what I found in practice ....seems WinUAE does the same thing (but it does display the RA attribute), however, it's also more forthcoming/replete with information wrt the hardfile itself... ie;

ex

...obviously we're not filling out the C/H/S or geometry fields, nor the RDB data .... I'm ambivalent, but for sure one day, somebody else not me is going to ask why these fields are there...but empty ;)

@midwan midwan closed this as completed in 2eca3a4 Jan 9, 2025
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

No branches or pull requests

2 participants