Jump to content

Writing a Distributed Filesystem in C++

- - - - -

  • Please log in to reply
4 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 297 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Hello all,

I'm wanting to write a DFS in C++. I want to make it lightweight and scalable; however, I'm not sure how to write a filesystem (as in programming environment).

I assume this should be done on Linux? If so, what distro?

Also, I assume I'll be using GCC to build and such but I'm inexperienced when it comes to Linux and GCC.

Any help would be great.
Jack
Creator, Owner, Webmaster
Brezerd.net

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
If you're writing a distributed file system, you probably shouldn't be making OS assumptions, as it will fail if someone attempts to connect using a different OS.

Given that SAMBA already handles most of this, I'm also not clear on what you're trying to accomplish. Is this a project for school, or a production environment?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Both *nix and MS-Windows already have that capability, that is, file sharing among all computers on a network. I doubt you can just write your own file system and just plug it into an existing operating system. You will also have to write you own operating system.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.

#4
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 297 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
I'm considering doing this for a school-based competition (I won last year but I'm not sure what to do for this year).

I'd have to have this completed (or at least on track) by June for submission.

Also, if I'm not making OS assumptions, what am I writing it on?
Jack
Creator, Owner, Webmaster
Brezerd.net

#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
A DFS is basically just a way to share files and file information over a network. Ultimately, you'll build this on top of TCP calls. You can use the boost libraries to do this in a cross-platform way, using a client/server model.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users