flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Designing A Filesystem


Should I Make A Filesystem
Yes
50%
 50%  [ 3 ]
No
50%
 50%  [ 3 ]
Total Votes : 6

Author
Thread Post new topic Reply to topic
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 13 Feb 2018, 14:36
Hey everyone. I want to know the doe's and don'ts of creating a file system for my os. What should I do? Thank you, and bye.

_________________
The Grape Operating System
Visit GrapeOS

WINDOWS 7 SQUAD FOREVER
Post 13 Feb 2018, 14:36
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: 20519
Location: In your JS exploiting you and your system
revolution 13 Feb 2018, 14:44
There is already a huge body of literature about FSes. The potential scope is vary large.

What do you need from your FS?

Do you need advanced features like ... Journaling? De-duplication? Redundancy? Versioning? Distributed? Etc.

If you just want simple file storage then it would probably be much easier to use basic FAT and be compatible with with all the external tools that can already deal with it. That way you can take advantage of other work without having to reinvent everything.
Post 13 Feb 2018, 14:44
View user's profile Send private message Visit poster's website Reply with quote
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 13 Feb 2018, 14:51
No. All I want is a simple file system with just a simple structre, and nothing fancy. I only want files and folders and their creation dates and modification dates stored on the disk, and none of the other fancy stuff.
Post 13 Feb 2018, 14:51
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: 20519
Location: In your JS exploiting you and your system
revolution 13 Feb 2018, 15:05
GrapeOS wrote:
... creation dates and modification dates stored on the disk ....
FAT only support a single date AFAICT. So maybe it isn't going to work for you.
Post 13 Feb 2018, 15:05
View user's profile Send private message Visit poster's website Reply with quote
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 13 Feb 2018, 18:28
I will attach the file system idea to here, and you can look at it


Description: Grape File System Idea
Download
Filename: grapefs.txt
Filesize: 987 Bytes
Downloaded: 854 Time(s)


_________________
The Grape Operating System
Visit GrapeOS

WINDOWS 7 SQUAD FOREVER
Post 13 Feb 2018, 18:28
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 13 Feb 2018, 22:31
... but to build our system, we need to make a disk image maker, so we need to work on that first.
The complete disk image, including a file system and the files can be written and assembled in FASM (no image maker required).

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 13 Feb 2018, 22:31
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 13 Feb 2018, 22:37
revolution wrote:
GrapeOS wrote:
... creation dates and modification dates stored on the disk ....
FAT only support a single date AFAICT. So maybe it isn't going to work for you.
AFAICT (with windows explorer) fat supports creation, modified and accessed dates.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 13 Feb 2018, 22:37
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: 20519
Location: In your JS exploiting you and your system
revolution 14 Feb 2018, 09:54
Mike Gonta wrote:
AFAICT (with windows explorer) fat supports creation, modified and accessed dates.
I think that would be the LFN extension to FAT.
Post 14 Feb 2018, 09:54
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 14 Feb 2018, 10:46
revolution wrote:
Mike Gonta wrote:
AFAICT (with windows explorer) fat supports creation, modified and accessed dates.
I think that would be the LFN extension to FAT.
No.
The LFN extension merely changed the 32 byte directory entry so that multiple directory entries could be used to
accommodate the LFN. The FAT directory entry which contains the meta data has the three time stamps. The
introduction of the modified and accessed times coincides with the introduction of LFN, however with or without LFN
the current FAT specification contains all three.
https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system#Directory_entry

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 14 Feb 2018, 10:46
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: 20519
Location: In your JS exploiting you and your system
revolution 14 Feb 2018, 11:04
Okay, cool, that is for VFAT.
Post 14 Feb 2018, 11:04
View user's profile Send private message Visit poster's website Reply with quote
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 14 Feb 2018, 13:58
Well, I can't figure out how to map the files in fasm, and i just can't do a:
DW (file_start/512)
I am still working on a GrapeFS disk image creator in python, and it should have the ability to write a boot sector, and inject files, extrect files, and get the list of files, create directorys, and modify directorys.
Post 14 Feb 2018, 13:58
View user's profile Send private message Visit poster's website Reply with quote
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 14 Feb 2018, 14:05
LFN should have just been a new file system, because if you read the filenames in dos, it will give you a whole bunch of directorys, and not the whole filenames. I have tried that, and that just happened. Microsoft should have released some product called "LFN Extensions For MS-DOS"
Post 14 Feb 2018, 14:05
View user's profile Send private message Visit poster's website Reply with quote
GrapeOS



Joined: 13 Feb 2018
Posts: 6
GrapeOS 14 Feb 2018, 14:09
Mike Gonta wrote:
... but to build our system, we need to make a disk image maker, so we need to work on that first.
The complete disk image, including a file system and the files can be written and assembled in FASM (no image maker required).


Why do that, when you could make a disk image creator, and later, I will use my operating system for my daily driver, so I would port virtualbox to it, and then make a build script that would use my disk image creator(ported to my os) to make a small disk image(like a 32-mb hdd file), with the GrapeFS filesystem, and that's how I would use it. I want my whole OS to be self-hosting.

Edit: What if I lose the disk image?

_________________
The Grape Operating System
Visit GrapeOS

WINDOWS 7 SQUAD FOREVER
Post 14 Feb 2018, 14:09
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 16 Feb 2018, 17:11
GrapeOS wrote:
LFN should have just been a new file system, because if you read the filenames in dos, it will give you a whole bunch of directorys, and not the whole filenames. I have tried that, and that just happened. Microsoft should have released some product called "LFN Extensions For MS-DOS"


IIRC, it (also) uses "volume" bit, so it shouldn't be found by normal findfirst, etc.

But did you really want an incompatible file system? Sometimes it's better to be compatible, even with kludgy workarounds. Then again, patents often destroy interoperability, so THAT I don't even pretend to understand. Patents are dumb, and we should've probably had a p.d. ext2 TSR driver. But no one cared (sigh). At least all VFAT patents have "probably" expired by now (sheesh).

Anyways, they had an improved file system (for OS/2) called HPFS. Not sure why that was never backported to DOS nor why it was quickly dropped after initial NT 3.1 release. There are partial third-party drivers for DOS, but it never was well-supported.

What you're thinking of is probably a TSR like DOSLFN. Not sure why MS didn't write one, but again, it's probably pointless when they want everyone to "upgrade" to Win9x GUI or "new technology" anyways. They probably didn't want to cannibalize their existing products.
Post 16 Feb 2018, 17:11
View user's profile Send private message Visit poster's website Reply with quote
ReflectOS



Joined: 21 Feb 2018
Posts: 3
ReflectOS 22 Feb 2018, 00:05
Oh. My new os is called ReflectOS, and GrapeOS is legacy.
Post 22 Feb 2018, 00:05
View user's profile Send private message Send e-mail 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.