|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
epoll with sshfsHello all,
I am using sshfs to mount on the local machine a part of the sysfs of a remote computer. I could watch some parameters from the remote computer easily. On the remote computer I use epoll to watch some files of sysfs. I would like to do the same from the local computer on the sshfs mounted part of the remote sysfs. But unfortunately, epoll doesn't work on file from sshfs... Do you have any idea why and how I could use epoll to watch distant file ? Thanks in advance for any help Patrick ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ fuse-devel mailing list fuse-devel@... https://lists.sourceforge.net/lists/listinfo/fuse-devel |
|
|
Re: epoll with sshfsPatrick <kpa_info@...> writes:
> Hello all, > > I am using sshfs to mount on the local machine a part of the sysfs of a remote computer. I could watch some parameters from the remote computer easily. > > On the remote computer I use epoll to watch some files of sysfs. I would like to do the same from the local computer on the sshfs mounted part of the remote sysfs. But unfortunately, epoll doesn't work on file from sshfs... > > Do you have any idea why and how I could use epoll to watch distant file ? > > Thanks in advance for any help > > Patrick /usr/include/fuse/fuse.h /** * Poll for IO readiness events * * Note: If @ph is non-NULL, the client should notify * when IO readiness events occur by calling * fuse_notify_poll() with the specified @ph. * * Regardless of the number of times poll with a non-NULL @ph * is received, single notification is enough to clear all. * Notifying more times incurs overhead but doesn't harm * correctness. * * The callee is responsible for destroying @ph with * fuse_pollhandle_destroy() when no longer in use. * * Introduced in version 2.8 */ int (*poll) (const char *, struct fuse_file_info *, struct fuse_pollhandle *ph, unsigned *reventsp); You would need to have a new enough kernel and libfuse and then add a callback for this to sshfs. The code would then have to run epoll or inotify on the remote site. I'm not sure sshfs has something running on the remote site that could do that. You have to look at the implementation for that. MfG Goswin ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ fuse-devel mailing list fuse-devel@... https://lists.sourceforge.net/lists/listinfo/fuse-devel |
| Free embeddable forum powered by Nabble | Forum Help |