From: Stef B. <st...@bo...> - 2007-08-24 06:43:40
|
On Wednesday 22 August 2007 10:50:32 Andrew Rose wrote: > > I would like to reply to you. I 'm not a programmer, but as far as I can see > > multithreading is also important. I wanted to use mysqlfs as a backup, but failed beacuse of the > > lack of multithreading. > > Correct me if I'm wrong but I was under the impression FUSE handled > the threading. All that mysqlfs needs to do is maintain the mysql > connections (the pool) and keep them thread safe. The locking (inode > and data_blocks) as far as I can picture it should be done on the > database level. Now I'm do not have a lot of experience (I'm systemenigineer, not a C/C++ programmer) with multithreading, but when I look to the code of for example sshfs or fusesmb, threading is done in the modules as well.(look for pthread_mutex_lock). > > Does anyone have any information on how FUSE handles inode creation? > The problem with multi-master inode clashing as far as I can see it is > when two servers (or more) create a file and pick the same inode (for > a file that they regard as local) that the clash occurs. I'm sorry. I cannot help you here. Did you look into the source? Stef Bon |