Bug 23423

Summary: HAL doesn't recognize raid0 md-devices
Product: hal Reporter: Igor Krivenko <igor.s.krivenko>
Component: haldAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
i915 platform: i915 features:

Description Igor Krivenko 2009-08-20 06:02:33 UTC
For a md-device (say, /dev/md0) HAL tries to read information about rebuild process from sysfs file /sys/devices/virtual/block/md0/md/sync_action (refresh_md_state() function from hald/linux/blockdev.c). 
This operation is skipped for linear RAID devices because they provide no redundancy and thus don't support rebuilding (there is no /sys/devices/virtual/block/md0/md/sync_action file).

According to the same logic and the kernel documentation HAL should skip this step also for RAID0 devices. Now refresh_md_state() just fails for such a device and eventually HAL ignores it.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.