Writing a custom Filesystem Format
Writing a custom Filesystem Format
Forum
Visual C++ & C++ Programming
C++ (Non Visual C++ Issues)
Writing a custom Filesystem Format
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have
to register or Login before you can post: click the register link above to proceed. To start
viewing messages, select the forum that you want to visit from the selection below.
Results 1 to 11 of 11
bitwize
Junior Member
Join Date
Jan 2011
Posts
9
I've always wanted to know how to write my own system for the learning
experience.
I've worked on simple ones that read from a flatfile of a defined size, but never
one that was on a fully formatted drive.
monarch_dodra
Elite Member
Join Date
Jun 2009
Location
France
Posts
2,513
The hard part is getting the OS to recognize it and interface with it. This requires,
either:
- A third party program that accesses the drives directly
- A driver for the OS
- Kernal inclusion
Needless to say, all of the above are far from trivial, even for professionals, and
well outside the scope of plain old C++.
To put things into perspective, NTFS is still not fully supported on linux type
systems. ext2 is supposedly supported on windows with thrid party drivers, but
ext3 and ext4 aren't.
And I can tell you there is a LOT of pressure to get those working.
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it
always makes for excellent reading.
Junior Member
Join Date
Apr 2012
Posts
8
bitwize
Junior Member
Join Date
Jan 2011
Posts
9
You don't "write" a filesystem format, you define it. That's the "easy" part.
The hard part is getting the OS to recognize it and interface with it. This requires,
either:
- A third party program that accesses the drives directly
- A driver for the OS
- Kernal inclusion
Needless to say, all of the above are far from trivial, even for professionals, and
well outside the scope of plain old C++.
To put things into perspective, NTFS is still not fully supported on linux type
systems. ext2 is supposedly supported on windows with thrid party drivers, but
ext3 and ext4 aren't.
And I can tell you there is a LOT of pressure to get those working.
I'm not referring to the likes of NTFS because, as CMalcheski said, it's a
proprietary Microsoft filesystem that wasn't meant to become public.
I meant something more-or-less basic for testing. I'm just asking mainly about
how to format a drive in a custom format.
I don't mean the OS drive either, just -- for example -- a USB key, or another
partition.
5.
6. April 13th, 2012, 04:58 PM #5
S_M_A
Elite Member
Join Date
Oct 2006
Location
Sweden
Posts
3,654
bitwize
Junior Member
Join Date
Jan 2011
Posts
9
Go ahead and make something of you own mind but it doesn't matter, you still
have to do what monarch_dodra says.
I'm not attempting to dispute what he's saying, just trying to understand it, which I
actually get now.
At first I misunderstood what he meant, thinking that drivers would be to integrate
the system into the OS's file manager -- but then I realized that's to recognize the
actually drive/format, and detect how the file system is dealt with before data
manipulation can even be achieved.
I realize that creation of one, in a whole, is not particularly easy by any means --
but it's far from unachievable. I'm just merely trying to learn, that's all. No
disrespect intended.
bitwize
Junior Member
Join Date
Jan 2011
Posts
9
I wasn't looking specifically for Windows, but I think I'll take a look there.
aamir121a
Member
Join Date
Mar 2010
Location
Melbourne Australia
Posts
454
10.
11. April 14th, 2012, 08:23 AM #9
Eri523
Elite Member
Join Date
Jun 2010
Location
Germany
Posts
2,675
I was thrown out of college for cheating on the metaphysics exam; I looked into
the soul of the boy sitting next to me.
bitwize
Junior Member
Join Date
Jan 2011
Posts
9
Thank you so much for that! Seriously, I wasn't aware of the book's existence, the
only book I really have is Stroustrup's book the C++ Programming Language.
I love learning about kernal/file system development. I much prefer designing and
working on the back end of systems
irhiggs
Junior Member
Join Date
Jul 2012
Posts
1
Check out Fuse. It allows you to slap together your own FS quickly and easily.
http://fuse.sourceforge.net/
Example: http://fuse.sourceforge.net/helloworld.html
You will need to make sure you map your custom functions like so:
Code:
Posting Permissions
BB code is On
Smilies are On
[IMG] code is On
[VIDEO] code is On
HTML code is Off
Forum Rules
Contact Us
CodeGuru
Forums
Privacy Statement
Top
Click Here to Expand Forum to Full Width
Featured
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously
consider bringing your Android mobile development
expertise to bear on the Windows 8 platform.
Terms and Conditions | About Us | Privacy Notice | Contact Us | Advertise | California - Do Not
Sell My Info
Copyright 2025 TechnologyAdvice. All Rights Reserved.
Advertiser Disclosure: Some of the products that appear on this site are from companies from
which TechnologyAdvice receives compensation. This compensation may impact how and
where products appear on this site including, for example, the order in which they appear.
TechnologyAdvice does not include all companies or all types of products available in the
marketplace.
All times are GMT -5. The time now is 12:32 PM.
Copyright TechnologyAdvice