Pyuu, on 26 December 2016 - 01:01 AM, said:
This program seems to be a really neat experimentation with filesystem emulation. One thing you could use for interacting with the HD file is
setting pointers to locations of the files within the HD, then using seek functions (
which you would have to create yourself since CC refuses to implement these which come with Lua.)
If I were to make a simple HD file, what I would do is allocate a number of bytes to pointers to files, then allocate a number of bytes to the actual contents of the HD.
Though, that's just me rambling on. Neat idea. I'll be watching this to see the progress made over time! It'd be cool if it were
pastebin downloadable as well, or if you need the multiple files you could use something like
packman (which can grab things from github.)
Wow thank you for your interest in this
I already thought about using that "inode-system", but was in a rush so I did this.
My current solution isn't really useable in a normal basis, as it technically doubles the size of the HD if you start the VM.
Yeah I'll need to add this to my cLinux repo and make a github installer
Anyways, thank you (again) for your support and your ideas.
EDIT:
Ones I figured the basic stuff out and everything works nice and clean, I'll start deleting the print() commands in this program and maybe making it a bit smaller, as it is intended to be a core and should be GUI-friendly (yeah I want to make a GUI at the very end)
That is, if I ever get to the point where this is stable.
STATUS UPDATE:
I'm currently trying to implement an inode system.
Made a new file and currently fs.makeDir, fs.open (partially) and fs.list() are implemented and working.
I only need to implement the rest and then port it over to this.
EDIT2:
Okaaay so I kinda finished the inode-system ? O.o
It's not ready for being "stable", as deleting is missing for example but it works.
You can try it out in the experimental branch
Edited by Piorjade, 26 December 2016 - 05:58 AM.