Which File System should I implement?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
neon
Member
Member
Posts: 1568
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Which File System should I implement?

Post by neon »

ClarionCoder51 wrote:...atleast I got the database part right. 8)

But really, how else could I manage data efficiently without a database? Afterall, it seems like the most logical thing to do, and could also return search results much quicker.
Different filesystems do things uhm .. differently. If you want to know how else to manage data without databases just look at different kinds of file systems. ie, FAT uses a linked list structure to manage cluster chains in files.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
ClarionCoder51
Member
Member
Posts: 28
Joined: Sun Aug 16, 2009 11:52 am
Location: Georgia, USA

Re: Which File System should I implement?

Post by ClarionCoder51 »

Well, FAT sure wasn't the best FS for Win9x, if that's the case. This reminds me, does a file retain it's file name and file type extension when written too...lets say...uhh..sector 2 of a floppy? I never thought it did, but maybe..naa.
"The n00b zone is for loading and unloading newbies only."
User avatar
neon
Member
Member
Posts: 1568
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Which File System should I implement?

Post by neon »

ClarionCoder51 wrote:This reminds me, does a file retain it's file name and file type extension when written too...lets say...uhh..sector 2 of a floppy? I never thought it did, but maybe..naa.
Depends on the file system. Using FAT as an example, the filename information is stored separately in an array of file information (directory table) rather then with the file itself. Thus a file may not ever retain or know its "filename" as its not stored with the file itself.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
User avatar
kop99
Member
Member
Posts: 120
Joined: Fri May 15, 2009 2:58 am

Re: Which File System should I implement?

Post by kop99 »

You can reference book "File System Forensic Analysis". It dosn't need a word!
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Which File System should I implement?

Post by JamesM »

ClarionCoder51 wrote:Well, FAT sure wasn't the best FS for Win9x, if that's the case. This reminds me, does a file retain it's file name and file type extension when written too...lets say...uhh..sector 2 of a floppy? I never thought it did, but maybe..naa.
What?!

You write data to a disk. The interpretation of that data is done by higher-level structures, which is what FAT/ext2 etc achieve.
Post Reply