diff options
author | Kinga Tanska <kinga.tanska@intel.com> | 2022-09-02 08:49:23 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-09-29 17:04:43 +0200 |
commit | 6f2af6a48c541f207cb727a31fb86de2cd04fc21 (patch) | |
tree | a57f3b9c8d52cd12848f70bc5b2c063f298b8717 /super1.c | |
parent | ReadMe: fix command-line help (diff) | |
download | mdadm-6f2af6a48c541f207cb727a31fb86de2cd04fc21.tar.xz mdadm-6f2af6a48c541f207cb727a31fb86de2cd04fc21.zip |
mdadm: replace container level checking with inline
To unify all containers checks in code, is_container() function is
added and propagated.
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2830,7 +2830,7 @@ static int validate_geometry1(struct supertype *st, int level, unsigned long long overhead; int fd; - if (level == LEVEL_CONTAINER) { + if (is_container(level)) { if (verbose) pr_err("1.x metadata does not support containers\n"); return 0; |