/srv/irclogs.ubuntu.com/2009/03/12/#upstart.txt

ion_ADHOS: Attention-Deficit Hyperac... Ooh, Shiny!13:20
mbieblKeybuk: hi14:04
Keybukhay14:12
Keybukoh hai14:12
mbieblKeybuk: I was contemplating about moving libdbus to /lib on Debian as you already did on Ubuntu 14:14
mbieblI wondered though, why you also moved dbus-daemon itself (and its utils), when its dependencies (like libexpat) are still on /usr14:15
Keybukjust a case of a partial move14:16
Keybukexpact is on the todo list14:16
mbieblbut is dbus-daemon on /bin really necessary?14:17
mbieblWouldn't libdbus be sufficient14:17
Keybuka reasonable question14:18
Keybukdepends how we want to do filesystem mounting14:18
mbieblas in?14:18
mbieblwhat role would dbus-daemon have to play there?14:19
Keybuknotification of the availability of new block devices14:20
Keybukwhich are then checked, and if their filesystem parents are mounted, mounted themselves14:21
Keybuk(otherwise queued)14:21
ion_The automount daemon i’ve been contemplating would handle that and wouldn’t use dbus-daemon.14:22
Keybukhow would you be notified?14:23
ion_I was thinking of something like SUBSYSTEM=="block", ACTION=="add|remove", RUN+="/sbin/automountc udev", with the client sending a simple message to automountd. It could always use libdbus but talk directly to the daemon’s UNIX socket.14:24
mbieblKeybuk: but that would also require hal or DeviceKit, right?14:24
Keybukion_: that incurs quite a high cost per device14:25
ion_Hmm, okay.14:25
Keybukyou'd have to fork/exec the udev child, the match costs, then the cost of fork/execing your automount client14:25
Keybukyour automount client could just use udev-dbus-daemon to be notified of the new devices14:25
Keybuk(if we have an early dbus daemon)14:25
ion_True14:25
Keybuk(udev-dbus-daemon being the bit that used to be DeviceKit)14:26
Keybukie. d-bus access to the udevdb14:26
mbiebloh yeah, davidz likes to move things around quite a bit ;-)14:26
ion_A random thought, SUBSYSTEM=="block", ACTION=="add|remove", RUN+="socket:@/.../automount/udev_event" :-P14:27
Keybukion_: why is that better than just using dbus?14:30
Keybuk(and it still costs you the udev child needed to process that)14:30
ion_Assuming every relevant distro will be running dbus before fscking /, it’s not better.14:31
Keybukwell... since the relevant distros are those using udev, and probably upstart14:32
Keybukthose that don't embrace such things are unlikely to embrace a "turn by turn" mount -a replacement <g>14:32
ion_True14:32
ion_Allright, i’m convinced, dbus is the way. :-)14:33
damjangood luck debuging that "mount by dbus" thing when it doesn't magically do what it's supposed to do :)14:53
Keybukdamjan: ?15:15
ion_I don’t see how that’s different from debugging anything else.16:06
=== Jc2k_ is now known as Jc2k

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!