
Originally Posted by
syampillai
First you need to isolate the problem and see if it is happening due to some issues with ivman or the hal system.
After inserting the disk, examine the output of lshal to see if the hal system really worked or not.
By the by, where did you copy the mountpolicies.fdi file?
Same problem here. Original openSUSE-11.2 ivman seems to get no events from dbus/hal daemon (use 'ivman -d --noforce' for testing).
Some debugging (and comparison against 'lshal -m' source code) showed that the g_thread_init()/dbug_g_thread_init() calls where causing the problem.
The following patch (move up the g_thread_init()/dbug_g_thread_init() calls) fixed the problem for me:
Code:
--- ivman-0.6.14/src/manager.c_orig 2010-02-02 22:50:33.000000000 +0100
+++ ivman-0.6.14/src/manager.c 2010-02-02 22:51:52.000000000 +0100
@@ -1414,6 +1414,10 @@
*/
int main(int argc, char *argv[])
{
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+ dbus_g_thread_init ();
+
setupI18N();
parseArguments(argc, argv);
do_startup_configure();
@@ -1428,10 +1432,6 @@
}
}
- if (!g_thread_supported ())
- g_thread_init (NULL);
- dbus_g_thread_init ();
-
/* Setup DBus */
ivm_dbus_init();
if (dbus_connection != NULL) {
Bookmarks