Custom VFS Module Help

Petr Cervenka [cerw] cerw at nano.cz
Fri Aug 17 07:34:57 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Thanks for you answer,

Volker Lendecke wrote:
> On Fri, Aug 17, 2007 at 02:16:32PM +0800, Petr Cervenka [cerw]
> wrote:
>> we are lookinf for someone who might help us with our
>> problem/task. We willing to write VFS Module which will does
>> lookup in MYSQL and do user based locking on files, and after
>> unlock it will transfer the file to another destination. Basicaly
>> it's gonna be two SMB servers on differnet locations, and this
>> module will keep them SYNC (rsync) and make sure noone is using
>> the file at the same times. (lock,unlock). Question is is this
>> setup possible?  Will it work? And if how much of coding is
>> needed?
>
> You would have to link yourself into the KERNEL_FLOCK operation so
> that clients upon conflict get a SHARING_VIOLATION error message.
> Then there's the CLOSE operation that you will need to hook into to
> unlock and possibly rsync to the other site.
>
So as I understand part of it would be SMB coding, to get the lock
status etc.. and then use KERNEL to do real FLOCK. Do we need to use
kernel functions that? As the files will be read/write only from SMB,
no real access to it.  ( I am not real kernel hacker ok :)
> I'm pretty sure this can be made to work, my main worries would be
> speed and robustness in case of any failure in between.
The synchronization would be called every period of time , 1 -2 per
hours, and all access to files (LOCK status) would be loged to MYSQL
server (for audit purposes as well) so later we can just transfer the
files we need to. It's not real time synchronization, but as long both
sides can lock some files and use them without conflict the others,
then it's good solution.

Also if there are someone out there who would take this as Paid job
please email me, We are located in Sydney.
Thanks a log
>
> Volker

- --
Petr Cervenka
http://cerw.nano.cz
au m: +61 0430007831
cz l: +42 0226531406
cz m: +42 0602372698
linux.djz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFGxU+gHksDalUgasMRA7lhAKDZTIVNDv1iT4a7qc1xtDE14aT25QCYg3mE
YBIfh1QhT354CHx/FqQPAw==
=+06K
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list