solotimes / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

Please support Kqueue #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to run on FreeBSD
2. Of course it cannot
3. ???
3. ... No profit :(

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

If you guys could please support kqueue we could really, really use this at my 
job. It would be a much, much better solution than our cron'd rsyncs.

Thanks and keep up the good work!

Original issue reported on code.google.com by felderado@gmail.com on 30 Oct 2010 at 3:36

GoogleCodeExporter commented 9 years ago
I looked at kqueue, unfortunally it does not seem to provide the functionality 
an application like lsyncd needs. It can watch only singular files, not whole 
directories, and all files have to be open to get a handle - which would result 
in funky unwanted effects, if you have an application like lsyncd maintaining 
open handles to all files. 

Original comment by axk...@gmail.com on 2 Nov 2010 at 12:54

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 2 Nov 2010 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by axk...@gmail.com on 8 Nov 2010 at 7:26

GoogleCodeExporter commented 9 years ago
Dovecot on FreeBSD uses Kqueue for watching the files and improve IMAP IDLE 
performance. Do you honestly think it opens every single email file hosted on 
your email system to get a handle? I think you've not looked hard enough at 
what it can do... and providing a Kqueue interface would give OSX and OpenBSD 
support as well.

Please look into this again....

Original comment by felderado@gmail.com on 10 Nov 2010 at 4:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, I believe this, if its otherwise show me the code please.

Original comment by axk...@gmail.com on 10 Nov 2010 at 7:19

GoogleCodeExporter commented 9 years ago
OSX does not have kqueue btw, it has yet another interface "FSEvents", this on 
the others looks like a pretty decent interface for the needs lsyncd has. It 
just hasnt been coded yet.

Original comment by axk...@gmail.com on 10 Nov 2010 at 7:27

GoogleCodeExporter commented 9 years ago
OSX actually has both...  Here's the OSX man page for kqueue

http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/m
an2/kqueue.2.html

Original comment by felderado@gmail.com on 14 Nov 2010 at 3:50