summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <david@fubar.dk>2004-01-02 12:45:12 +0000
committerDavid Zeuthen <david@fubar.dk>2004-01-02 12:45:12 +0000
commitda334e8b79fea54ba12279c0ac769363145cd4f2 (patch)
treed533c78984af182aae1b18a42042089e3c211ebd
parent0d48e5316a0d35e4494134e324aa76dd38cd25ac (diff)
quick fix to ensure that ds_gdl_add is not called before it shouldHAL_0_2_2
-rw-r--r--hald/linux/linux_class_block.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/hald/linux/linux_class_block.c b/hald/linux/linux_class_block.c
index 581e3ab1..e8fe4c32 100644
--- a/hald/linux/linux_class_block.c
+++ b/hald/linux/linux_class_block.c
@@ -380,9 +380,20 @@ void linux_class_block_check_if_ready_to_add(HalDevice* d)
device_file = ds_property_get_string(d, "block.device");
HAL_INFO(("Entering, udi=%s, device_file=%s", d->udi, device_file));
- if( device_file!=NULL && strcmp(device_file, "")!=0 )
+ if( !is_probing )
{
- ds_gdl_add(d);
+ /** We really need to invoke udev soon */
+ if( device_file!=NULL && strcmp(device_file, "fixme-invoke-udev")!=0 )
+ {
+ ds_gdl_add(d);
+ }
+ }
+ else
+ {
+ if( device_file!=NULL && strcmp(device_file, "")!=0 )
+ {
+ ds_gdl_add(d);
+ }
}
}