Comment 8 for bug 92647

Revision history for this message
In , Martin Pitt (pitti) wrote :

This is the latest stable release, 0.5.8.1. This comes from hald/linux/blockdev.c, hotplug_event_begin_add_blockdev():

                /* sleep one second since device mapper needs additional
                 * time before the device file is ready
                 *
                 * this is a hack and will only affect device mapper block
                 * devices. It can go away once the kernel emits a "changed"
                 * event for the device file (this is about to go upstream)
                 * and we can depend on a released kernel with this feature.
                 */
                if (strncmp (hal_util_get_last_element (sysfs_path), "dm-", 3) == 0) {
                        HAL_INFO (("Waiting 1000ms to wait for device mapper to be ready", path));
                        usleep (1000 * 1000);
                }

Indeed git head looks completely different, so let's assume for now that this is fixed already. Thank you!