diff options
author | Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> | 2013-06-18 11:09:16 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-19 02:03:12 +0200 |
commit | f8fcf7a1c54c7c6b9b75a3388a73435db198bd71 (patch) | |
tree | d3d71d012edc868a8883c82415a4b5648cb51b73 /raid6check.c | |
parent | Makefile: add "-O3" to WARN_UNUSED options. (diff) | |
download | mdadm-f8fcf7a1c54c7c6b9b75a3388a73435db198bd71.tar.xz mdadm-f8fcf7a1c54c7c6b9b75a3388a73435db198bd71.zip |
raid6check: Fix build of raid6check
After recent git pull 'make raid6check' did not work anymore, as
sysfs_read() was called with a wrong argument and as check_env()
was used by use_udev(), but not defined.
Replace sysfs_read(..., -1, ...) by sysfs_read(..., NULL, ...)
Move check_env() from util.c to lib.c
Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'raid6check.c')
-rw-r--r-- | raid6check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raid6check.c b/raid6check.c index e9a17a7c..f5aeee44 100644 --- a/raid6check.c +++ b/raid6check.c @@ -386,7 +386,7 @@ int main(int argc, char *argv[]) goto exitHere; } - info = sysfs_read(mdfd, -1, + info = sysfs_read(mdfd, NULL, GET_LEVEL| GET_LAYOUT| GET_DISKS| |