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

HYPPO: add better disk image directory handling #677

Closed
lydon42 opened this issue Mar 11, 2023 · 3 comments
Closed

HYPPO: add better disk image directory handling #677

lydon42 opened this issue Mar 11, 2023 · 3 comments
Labels
duplicate enhancement A feature request or other kind of enhancement.

Comments

@lydon42
Copy link
Member

lydon42 commented Mar 11, 2023

Currently only the filename of a disk image attached is stored in the process structure. If an image was loaded from a subdirectory, it is never possible to restore it after a freeze.

In addition hyppo could also store some UID of the sd card, so the entries can be invalidated if the wrong disk is inserted. Or better not?

Related FREEZER issues:

@lydon42 lydon42 added the enhancement A feature request or other kind of enhancement. label Mar 11, 2023
@lydon42 lydon42 added this to the far future milestone Mar 11, 2023
@lydon42
Copy link
Member Author

lydon42 commented Mar 11, 2023

Perhaps it is also possible to just store disk UID plus some pointer onto the disk? Not sure if this is feasible with FAT. Problem with path storage: those can get quite long...

@lgblgblgb
Copy link
Contributor

In theory at FAT level, directory can be identified with only a single number: the starting cluster of the given directory (if it's the root directory, the starting cluster simply the cluster number of the start of the root directory but there is nothing special in that on FAT32 - though it is on FAT12/16, but it's not scope here fortunately). There is not even needed to store the textual representation of the full path, as every directory should have '..' entries to be followed to query the path then if needed. The disadvantage of this, if someone wants to see the path, not only make it working. Then the mentioned '..' following should be done to get back the path (in reversed order) till hitting the root directory. I am not sure though, how HYPPO handles these things ...

@lydon42
Copy link
Member Author

lydon42 commented Sep 3, 2023

closing in favor of #729

@lydon42 lydon42 closed this as completed Sep 3, 2023
@lydon42 lydon42 removed this from the far future milestone Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate enhancement A feature request or other kind of enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants