Re: How Can I create a RAMDisk?
Posted: Sat Jan 17, 2009 7:46 am
Okay, I took a day off and helped my little sister move so I missed all those wonderful posts until just now.
to Jal:
I think that a full search using a SQL like database would be possible even with different data types, I plan for my OS to understand how to read the different datatypes. obviously you wouldn't search a PNG or JPG for a text string, but you could search an html, txt, doc, rtf, docx, ... etc. All you have to do is know how to read them and I want any program that has a new file compatability to modify a part of my OS so that my whole OS knows how to read the file. Really all photoshop or office do is translate a specific file type that they want to use, I want the code that does the translation to be integrated and classified as either text or graphics. text would be search able and graphics would not. more complex file types like a database file might require a little extra work or might simple be determined to be unsearchable. That is to be figured out at a later date.
As for the FAT Files Systems. I am going to use FAT12, which I already have for my bootloader, to lessen the time required for getting my RAMDisk running. I don't plan to stick with FAT12 and I also don't plan to stick with my initial RAMDisk implementation. I am simply using it as a tool to move to the next step. When I get a better design of what my API should look like I will change the RAMDisk to be properly implemented. when it is all said and done my RAMDisk will probablly have a custom Kernel FS that is incompatible with all other FS's and will be extened using internal commands.
To Love4Boobies:
I know that WinFS is a Subsytem that runs ontop of the FS. I had forgotten that is was only using Metadata, but that is not really important as I was only after the enduser functions and not really the implementation. I would like to have a way, other than just putting them in the same folder, to have files linked in the manner you stated. I want an email about a meeting to give you a link to add a calendar event and a way to associate documents created for or during the meeting with that meeting. I would also like to allow, in myspace terms - horrible website by the way, a user to "tag" a document or photo so that your photos and such could be sorted by who is in them, why they were taken or any other user decided criteria with out having to clump them in folders and decide to sort them this way or that for all eternity.
To Bewing:
While you have described what I would consider the proper way of doing things. For right now, this is a bastardized RAMDisk implementation just to get some dirty stuff out of the way and I will polish the poo after I have more things worked out. I don't find it very easy to write things down and work them out. I am much better at slapping some code in there and seeing if it works. I plan on going back and optimizing or redesigning all of my code after I figure out how parts work. Actually after I get a simple shell with enough functionality to run a program that is external to my kernel, in the RAMDisk is fine, then I will go and fix any code that I can and maybe reinvision somethings.
I would like to thank everyone for the help and links to different resources.
to Jal:
I think that a full search using a SQL like database would be possible even with different data types, I plan for my OS to understand how to read the different datatypes. obviously you wouldn't search a PNG or JPG for a text string, but you could search an html, txt, doc, rtf, docx, ... etc. All you have to do is know how to read them and I want any program that has a new file compatability to modify a part of my OS so that my whole OS knows how to read the file. Really all photoshop or office do is translate a specific file type that they want to use, I want the code that does the translation to be integrated and classified as either text or graphics. text would be search able and graphics would not. more complex file types like a database file might require a little extra work or might simple be determined to be unsearchable. That is to be figured out at a later date.
As for the FAT Files Systems. I am going to use FAT12, which I already have for my bootloader, to lessen the time required for getting my RAMDisk running. I don't plan to stick with FAT12 and I also don't plan to stick with my initial RAMDisk implementation. I am simply using it as a tool to move to the next step. When I get a better design of what my API should look like I will change the RAMDisk to be properly implemented. when it is all said and done my RAMDisk will probablly have a custom Kernel FS that is incompatible with all other FS's and will be extened using internal commands.
To Love4Boobies:
I know that WinFS is a Subsytem that runs ontop of the FS. I had forgotten that is was only using Metadata, but that is not really important as I was only after the enduser functions and not really the implementation. I would like to have a way, other than just putting them in the same folder, to have files linked in the manner you stated. I want an email about a meeting to give you a link to add a calendar event and a way to associate documents created for or during the meeting with that meeting. I would also like to allow, in myspace terms - horrible website by the way, a user to "tag" a document or photo so that your photos and such could be sorted by who is in them, why they were taken or any other user decided criteria with out having to clump them in folders and decide to sort them this way or that for all eternity.
To Bewing:
While you have described what I would consider the proper way of doing things. For right now, this is a bastardized RAMDisk implementation just to get some dirty stuff out of the way and I will polish the poo after I have more things worked out. I don't find it very easy to write things down and work them out. I am much better at slapping some code in there and seeing if it works. I plan on going back and optimizing or redesigning all of my code after I figure out how parts work. Actually after I get a simple shell with enough functionality to run a program that is external to my kernel, in the RAMDisk is fine, then I will go and fix any code that I can and maybe reinvision somethings.
I would like to thank everyone for the help and links to different resources.