commit b6c3205e20f8654d2cdf3a2fefa0217bd57ff445 Author: Christophe Vu-Brugier Date: Mon Sep 13 21:50:56 2010 +0200 hald: correctly refresh the status of RAID arrays. Fix bug in hald that prevent it from refreshing the status of Linux RAID arrays. Set "sysfs_path" to "/sys/devices/virtual/block/mdX" instead of "/sys/block/mdX" so that it matches the value stored in the "linux.sysfs_path" property. diff --git a/hald/linux/blockdev.c b/hald/linux/blockdev.c index ff16580..d171529 100644 --- a/hald/linux/blockdev.c +++ b/hald/linux/blockdev.c @@ -1955,7 +1955,7 @@ blockdev_process_mdstat (void) if (sscanf (line, "md%d : ", &num) == 1) { char *sysfs_path; - sysfs_path = g_strdup_printf ("/sys/block/md%d", num); + sysfs_path = g_strdup_printf ("/sys/devices/virtual/block/md%d", num); read_md_devs = g_slist_prepend (read_md_devs, sysfs_path); }