diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2022-01-20 13:18:32 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-04-05 03:20:27 +0200 |
commit | 913f07d1db4a0078acc26d6ccabe1c315cf9273c (patch) | |
tree | 49f06c347eb94367af0cc839f486da76a69eda0d /mdadm.h | |
parent | mdadm: Update config manual (diff) | |
download | mdadm-913f07d1db4a0078acc26d6ccabe1c315cf9273c.tar.xz mdadm-913f07d1db4a0078acc26d6ccabe1c315cf9273c.zip |
Create, Build: use default_layout()
This code is duplicated for Build mode so make default_layout() extern
and use it. Simplify the function structure.
It introduced change for Build mode, now for raid0 RAID0_ORIG_LAYOUT
will be returned same as for Create.
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1512,6 +1512,7 @@ extern int get_linux_version(void); extern int mdadm_version(char *version); extern unsigned long long parse_size(char *size); extern int parse_uuid(char *str, int uuid[4]); +int default_layout(struct supertype *st, int level, int verbose); extern int is_near_layout_10(int layout); extern int parse_layout_10(char *layout); extern int parse_layout_faulty(char *layout); |