-
Committer:
Scott Moser
-
Date:
2016-01-07 18:55:11 UTC
-
mfrom:
(332.2.10 fix-lp1531520)
-
Revision ID:
smoser@ubuntu.com-20160107185511-y9hcdfmeuufso24v
mdadm: fix issues exposed by use via block_meta
Using mdadm via block_meta exposed a few issues.
- block_meta calls block.md_check, this should be mdadm.md_check
- mdadm.sysfs_read_attr had thinko in check if it should attempt to read
an attribute and avoiding reading files
- mdadm.sysfs_read_attr should use util.load_file
- ensure all entrypoints to mdadm code check that device names are device
paths.