]> git.ipfire.org Git - thirdparty/mdadm.git/commit
sysfs: Parse array_state in sysfs_read()
authorJes Sorensen <jsorensen@fb.com>
Thu, 20 Apr 2017 03:27:58 +0000 (23:27 -0400)
committerJes Sorensen <jsorensen@fb.com>
Thu, 20 Apr 2017 04:12:27 +0000 (00:12 -0400)
commit5e4ca8bb82e98400c9258cb3d7e4d030576f21df
tree9c2f93c746d3a4264aa39ce1bb6505e12958d881
parentf22d6cde7c7e4be38230ac4c51c3af850ed1614e
sysfs: Parse array_state in sysfs_read()

Rather than copying in the array_state string, parse it and use an
enum to indicate the state.

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Manage.c
maps.c
mdadm.h
sysfs.c