diff options
author | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-30 22:02:36 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-30 22:02:36 +0200 |
commit | 67a02d520085b01a1b9e6ea59fb30e79c5649c9c (patch) | |
tree | 0c3e70be5a9352290898dd831892d0ce73e0295d /Assemble.c | |
parent | mdadm.c: fix compile error "switch condition has boolean value" (diff) | |
download | mdadm-67a02d520085b01a1b9e6ea59fb30e79c5649c9c.tar.xz mdadm-67a02d520085b01a1b9e6ea59fb30e79c5649c9c.zip |
sysfs: Use the presence of /sys/block/<dev>/md as indicator of valid device
Rather than calling ioctl(RAID_VERSION), use the presence of
/sys/block/<dev>/md as indicator of the device being valid and sysfs
being active for it. The ioctl could return valid data, but sysfs
not mounted, which renders sysfs_init() useless anyway.
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'Assemble.c')
0 files changed, 0 insertions, 0 deletions