larroy / clearskies_core

Open source, distributed, secure data synchronization using the clearskies protocol
GNU Lesser General Public License v3.0
136 stars 15 forks source link

Implement an intelligent scanner for Linux #21

Open larroy opened 10 years ago

larroy commented 10 years ago

The scanner should be triggered on file changes using the platforms file notification mechanism

alexchamberlain commented 10 years ago

Anyone working on this? Is there a "dumb" scanner implemented?

larroy commented 10 years ago

Yes, we have just the dumb scanner.

It would be good to explore something better with inotify or whatever is the state of the art today for the given platform.

https://github.com/larroy/clearskies_core/blob/master/src/cs/share.cpp#L608

Pedro.

On Fri, Mar 28, 2014 at 6:23 PM, Alex Chamberlain notifications@github.comwrote:

Anyone working on this? Is there a "dumb" scanner implemented?

— Reply to this email directly or view it on GitHubhttps://github.com/larroy/clearskies_core/issues/21#issuecomment-38945227 .

Pedro Larroy Tovar | http://pedro.larroy.com/

alexchamberlain commented 10 years ago

Looks like libuv has basic support for file change events, so I'll start there.

larroy commented 10 years ago

Good point. Thanks, I didn't know this. Should make things easier if it works correctly. On Mar 28, 2014 10:34 PM, "Alex Chamberlain" notifications@github.com wrote:

Looks like libuv has basic support for file change eventshttp://nikhilm.github.io/uvbook/filesystem.html#file-change-events, so I'll start there.

— Reply to this email directly or view it on GitHubhttps://github.com/larroy/clearskies_core/issues/21#issuecomment-38970563 .