|
From: Rob M. <cap...@xs...> - 2011-11-07 08:02:50
|
Probably an other 'there can be only one' event-loop issue. Not sure if dbus performance would be acceptable, the fact that you use python for the file-system would make me think that performance is not your first concern. Possibly you could implement the whole file-system as a dbus service and let your fuse code be just a proxy to that dbus service. I have the untested hypothesis that a fully asynchronous FUSE file-system written against the fuse C API, talking to an asynchronous twisted/dbus service that implements the actual file-system might actually turn out to have better overall performance than one using the 'everything is blocking' python Fuse API. I haven't got sufficient data to reason about this hypothesis, but it might be worth experimenting with. Maybe others on the list have done such experiments or have useful insights for (in)validating this hypothesis. On Sun, November 6, 2011 18:02, Leon Bogaert wrote: > Hi, > > I'm trying to set up a fuse fs that responds to dbus signals. So I set > up the dbus initialization stuff in fsinit(): > > def fsinit(self): > import dbus > from dbus.mainloop.glib import DBusGMainLoop > DBusGMainLoop(set_as_default=True) > self.bus = dbus.SessionBus() > > But when I do it like above the bus doesn't respond to signals. If I > leave out the DBusGMainLoop I get this error: > > RuntimeError: To make asynchronous calls, receive signals or > export objects, D-Bus connections must be attached to a main > loop by passing mainloop=... to the constructor or calling > dbus.set_default_main_loop(...) > > How can I solve this issue? Is there a way to get to the fuse mainloop > so I can pass that to the dbus connection? > > Thanks in advance! > > Leon > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > |