Question

I,m suppose to write a client/server program which mount a directory from the server into client hierarchy. What I have to do is, instead of using linux mount function, implement a method in c.c++ that works like mount function. I did a lot of googling on the net but can't find any good tutorial or document that could help. I will be very grateful if you help me and give me some advice, suggestion or introduce a tutorial/document as a starting point.

Était-ce utile?

La solution

Your question is a bit vague. If this is an assignment, it could be about several things:

  • Implementing a filesystem (FUSE would probably be the simplest place to start).

  • Just emulating the calls, and defining your own e.g. ls, cd etc. for educational purposes, and bringing in the data from the server.

  • Implementing a tool like mount, possibly using the mount() system call.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top