Jump to content




cMinix (inode-block-filesystem)

lua utility

2 replies to this topic

#1 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 04 February 2017 - 11:41 PM

cMinix filesystem - inodes and blocks


What this is about:
Spoiler


Problems:
Spoiler

If you find a fix for any of these problems, please tell me.
If you need help switching between those two methods (returning to craftos, booting virtual clinux), ask me

FYI, I made a "cmd" function in the code, which reads input and has the "ls" command, which actually DOES work. (it's a while loop)

Code:
GitHub

To download:
Download the zip from GitHub, it's not worth to make a pastebin as it's not "usable" for "normal" users. (except if you just want to make a new os from scratch with this filesystem.)

INFO:
As it's using a "virtual harddrive", you practically CANNOT use an external editor to do stuff. (Well you CAN, but it's so retarded to do so as the files are serialized and you would have to manage the inodes and blocks manually, which isn't that easy over time)

INFO 2:
Yeah inserting a bios 'n stuff from cVM is still implemented, didn't have the time to delete these.
You can insert a bios, but it's useless.
I'm still thinking if I should implement that as a kinda "invisible startup file" tho....

Edited by Piorjade, 10 February 2017 - 07:39 AM.


#2 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 10 February 2017 - 07:40 AM

Looks like I forgot to link the GitHub page...

*facepalm*

#3 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 10 February 2017 - 10:49 AM

MAJOR UPDATE:
  • Fixed some bugs
  • Removed unused lines
  • Fixed cLinux:
    • The cause for getting stuck was shell.complete, which was used in the read function in the commandline
    • I disabled the completion so now it basically works
    • But when I tested luaide:
      • it got stuck after entering a path for a new file and after a while prints out a Java VM error, leading to having the whole CC computer being frozen (CCEmuRedux; luaide was the only program I tested (I also tested rm, mkdir, cd but they don't count :P) )
  • This basically means I currently have no clue how to return to CraftOS and also I would have to copy the whole rom folder in the HD, which I tried and it crashed
  • There are 2 new options for the program:
    • edit the file at the very top:
      • debug = enables debug messages (e.g. prints out every call of _fs.findInode)
        Debug also copies every file from /cLinux/ over to the HD!!
      • customOS = instead of running /startup, located in the HD, it runs the cmd function located down below
(this program needs a minimally edited version of the commandline for cLinux, which has completion disabled)
NOTE:
The testhd file has cLinux preinstalled, so you may try it out

Edited by Piorjade, 10 February 2017 - 10:54 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users