On 11 Apr 2011, at 12:12, Meisam Mohammadkhani <[email protected]> 
wrote:

> If a client crashes before it closes the file that he changed it before, what 
> happens to changed data? All of it will lost?

If the application crashes, then the file will still be written to the file 
server. If the machine upon which the application is running crashes, then any 
unwritten data will be lost. Applications may force writes at points other than 
when files are closed, by using the fsync() command - using this to force 
checkpoints is a good idea if your application is going to keep files open for 
any length of time.

> I also wanna to know if we wanna write in a file by our application on the 
> file server machine, it will issues a client on that to do this or a server 
> can manipulate its files without need to use a client (client and server both 
> needs to be appear on that machine)?

You need a client in order to be able to manipulate files in AFS. This might be 
a fully fledged cache manager, a program linked directly with libuafs, or a 
utility like afsio.

Cheers,

Simon.

Reply via email to