News for hackers. Stuff that matters.
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Monday June 15, 2020 @01:59PM (#23530652)
Just so you know, this is part of a larger tutorial at https://osblog.stephenmarz.com where I write a RISC-V operating system using Rust.

Let me know if you have any questions!

Re:Files by Name (Minix 3 Filesystem) by giancarlostoro on Monday June 15, 2020 @02:53PM (#23531415)
Curious what kind of hardware are you using? I'm interested in trying out RISC-V for myself, but aside from Qemu I'm not sure where I'd start.
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Monday June 15, 2020 @03:32PM (#23531940)
I use the Kendryte K215 which is a dual-core, RV64GC inside of the Sipeed Maixduino (Arduino form factor):

https://www.seeedstudio.com/sipeed

Re:Files by Name (Minix 3 Filesystem) by imheresamir on Monday June 15, 2020 @08:30PM (#23534676)
Have you found the TRM yet? I really like the idea of this chip but the released documentation for it is woefully incomplete.
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Tuesday June 16, 2020 @09:23AM (#23538841)
Unfortunately no. I've been reverse engineering it from their BSP. It's slower than I'd like.
Re:Files by Name (Minix 3 Filesystem) by quasarj on Monday June 15, 2020 @07:38PM (#23534342)
I did immediately wonder how Minix was written in Rust, since it predates it by quite a bit.
Re:Files by Name (Minix 3 Filesystem) by lordleft on Monday June 15, 2020 @02:34PM (#23531178)
I feel like Minix is underappreciated. I'm reading Tannenbaum's Modern Operating Systems at the moment and he makes a persuasive appeal for some of its unique takes of the *nix OS family.
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Monday June 15, 2020 @02:37PM (#23531210)
Minix 3 has taken on a life of its own and is maintained here: https://minix3.org/

I had trouble finding really good documentation on the filesystem itself, so it took a bit of trial-and-error to figure out the structure.

Re:Files by Name (Minix 3 Filesystem) by sillywalk on Monday June 15, 2020 @07:25PM (#23534260)
From the website, it looks like development stopped in 2016.

I read some of the papers on Minix3, and the Loris storage stack. From the bits I understood, it looks pretty interesting.

Re:Files by Name (Minix 3 Filesystem) by lordleft on Monday June 15, 2020 @02:41PM (#23531269)
You're doing impressive work! Thank you for writing this up and sharing your progress!
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Monday June 15, 2020 @02:48PM (#23531362)
Thank you! I appreciate the kind words.
Re:Files by Name (Minix 3 Filesystem) by abawany on Monday June 15, 2020 @07:55PM (#23534445)
It is a really good book and I credit it for saving me when I took an undergraduate class in operating systems a long time ago: the book chosen for the course was mostly incomprehensible to me but reading Tannenbaum's tome was eye opening and insightful. Edit: spelling.
Re:Files by Name (Minix 3 Filesystem) by joshbaptiste on Monday June 15, 2020 @04:23PM (#23532517)
Wait so this is an alternative Minix 3 FS written in Rust?
Re:Files by Name (Minix 3 Filesystem) by pavehawk2007 on Monday June 15, 2020 @05:54PM (#23533487)
Alternative? No. It's a component of the full RISC-V operating system.
Re:Files by Name (Minix 3 Filesystem) by joshbaptiste on Monday June 15, 2020 @06:30PM (#23533830)
ah ok