On 2009-12-09, Lino Sanfilippo <[email protected]> wrote:
>> Next thing what is not the best is need to seek after reading
>> dazukofs.ctrl. It complicates writing scanning threads. I think
>> that the most simple model, would be if every thread read
>> dazukofs.ctrl and scaned the result without need to
>> synchronize. But because of the lseek we need to synchronize
>> threads.
>
> Youre right, this is something that could be improved.  But until
> then: what about pread()?

Every thread should have its _own_ open file descriptor to the
DazukoFS group device. This requires no thread synchronization and no
seeking.

John Ogness

-- 
Dazuko Maintainer


_______________________________________________
Dazuko-help mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dazuko-help

Reply via email to