Feature Request: ao486 core, mount ZIP files like ROMS

Discussion of developmental aspects of the MiSTer Project.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by held »

Hello,

It would be real nice to use ZIP files like ROMS for the AO486 core.

The first step would be to mount ZIP files read-only, like a hard drive.
The second step would be to mount an overlay folder on that drive, fusing them into one.
(a bit like ROMS but for DOS, read from ZIP, write to the overlay)

This has multiple benefits (probably a lot more):
1. No manual conversion of games into VHD's
2. People could start configuring and share their own game profiles.
3. It saves a ton of disk space and time unzipping.
4. The overlay folder per game can be backuped,restored,modified,exchanged,deleted
5. Troubleshooting would be easier, since its so easy to restore/reset
6. Easy applying & rolling back game updates

Sources of interest:

ZIP mounting on Linux: fuse-zip
source: https://bitbucket.org/agalanin/fuse-zip/src/
Also an experimental ZIP-mount patch was made once: https://www.vogons.org/viewtopic.php?t=9591

OVERLAY mounting in the official DOSBox-SVN
topic: https://www.vogons.org/viewtopic.php?f= ... 9&p=744958
source: https://sourceforge.net/p/dosbox/code-0 ... verlay.cpp
User avatar
toastboy
Posts: 69
Joined: Wed Sep 09, 2020 9:20 pm
Has thanked: 13 times
Been thanked: 20 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by toastboy »

There are a number of ways to skin this particular cat.
SquashFS and overlayFS spring to mind, but neither are supported in the current mister kernel/modules/toolset.

More importantly, Ao486 (and minimig, mist, everything with VHD support) would need to be modified to mount directories of files as hard disk media, as opposed to the current vhd hardfiles.

Assuming the above was implemented, then yes it would work, but..... this sort of thing has been proposed in the past and sorg has gently turned down the idea (and I do mean gently, he's not always 'angry' sorgelig) on the grounds that it would harm the simplicity and usability of the project.

Personally I think he's got the balance right there. While I'm more than happy spending a few hours setting up bash script doohickery to save space and get more fun out of the mister, I'd be less happy to see the mister forums full of grumpy and confused people trying to get the same benefits with tools that were not designed to be easily understood.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by held »

toastboy wrote: Mon Sep 27, 2021 6:40 pm More importantly, Ao486 (and minimig, mist, everything with VHD support) would need to be modified to mount directories of files as hard disk media, as opposed to the current vhd hardfiles.
Not entirely what I was hinting at :D
Wouldn't you agree that a 'local mount' within DOS would be highly practical?
Bas
Top Contributor
Posts: 623
Joined: Fri Jan 22, 2021 4:36 pm
Has thanked: 80 times
Been thanked: 324 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by Bas »

Minimig has a shared MiSTer filesystem for workbench. If you want that in DOS, it could be a memory hog for needing a driver to do it and DOS is already a game of scraping the barrel to get free RAM. Amiga was a much saner system to accommodate things like this. Support for compressed VHD would be nice and should be doable on the Linux side.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by held »

Of course its not a memory hog. DOSBox has 632k free and does the same thing.
Their tools on the Z:\ drive are just external calls. The underlying OS or in this case DOSBox picks up the other end.

So this mounting problem has been solved before. Could that be adapted for AO486?
zakk4223
Posts: 289
Joined: Sun May 24, 2020 10:55 pm
Been thanked: 120 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by zakk4223 »

?????

ao486 already supports shared folders just like Minimig.
User avatar
allyourbasekris
Posts: 79
Joined: Wed Sep 23, 2020 11:47 pm
Has thanked: 31 times
Been thanked: 45 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by allyourbasekris »

It's on the wiki https://github.com/MiSTer-devel/ao486_MiSTer
Check out the section relating to MisterFS
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Re: Feature Request: ao486 core, mount ZIP files like ROMS

Unread post by held »

I can only find binaries, does anyone know where the source is? (for the misterfs.exe)

EDIT: found it, i was looking with my :lol:
Post Reply