flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Linear file system

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4240
Location: 2018
edfed
what about a linear file system?

something that don't know what a sector is and see the disk, or anything else as it sees the linear ram?

it would be pretty nice to stop the historic hardware fitting design, that induces several layers between the hard drive and the final file...

in fact, the file system in not in a disk, it is in ram, then, why making a ramdrive when the drive is just a hardram????
Post 07 Mar 2014, 16:52
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17624
Location: In your JS exploiting you and your system
revolution
I expect the main problem is that HDDs and SSDs are block devices. If you pretend they are not then you create a few difficulties when updating partial blocks. Moving data sections up or down by one byte when defragmenting would be very awful.
Post 07 Mar 2014, 17:29
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7781
Location: Kraków, Poland
Tomasz Grysztar
I implemented a linear file system (called HFS) for the RAM-drive in my Titan OS back in 1999. You can take a look at these sources, but if you wanted to try to copy and use them, I must warn you that they are buggy. I remember that I fixed some serious bugs in the file system handling in the later version (the one that I lost) - and now I no longer remember what they were. So I know that it is buggy, but I don't remember in what way.

It was an interesting idea to play with, but as revolution pointed out already, it is not a good file system when working with sector-based devices like hard drives, as the out-of-alignment reads and writes would case serious performance issues. For the RAM-drive it was OK (though RAM can also have performance problems with non-aligned reads and writes, but definitely not as serious).
Post 07 Mar 2014, 21:09
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.