diff options
author | 2016-05-19 18:49:27 +0200 | |
---|---|---|
committer | 2016-06-13 14:40:27 -0400 | |
commit | f090279eaff814a550b35bb51aac6b8541bddf97 (patch) | |
tree | 63013e80c7294f09668d0d91fa0a714db23a7090 /tools/perf/scripts/python | |
parent | dm raid: cleanup / provide infrastructure (diff) | |
download | linux-dev-f090279eaff814a550b35bb51aac6b8541bddf97.tar.xz linux-dev-f090279eaff814a550b35bb51aac6b8541bddf97.zip |
dm raid: check constructor arguments for invalid raid level/argument combinations
Reject invalid flag combinations to avoid potential data corruption or
failing raid set construction:
- add definitions for constructor flag combinations and invalid flags
per level
- add bool test functions for the various raid types
(also will be used by future reshaping enhancements)
- introduce rs_check_for_invalid_flags() and _invalid_flags()
to perform the validity checks
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions