summaryrefslogtreecommitdiff
path: root/super-gpt.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-04-11 12:54:26 -0400
committerJes Sorensen <jsorensen@fb.com>2017-04-11 12:54:26 -0400
commit32141c1765967e37d6f1accdf124c166bc103c3b (patch)
tree116d336b6aa10881f7df01824f77f845fcc4d933 /super-gpt.c
parent2cfe6f7c646ebc25043f7607f5756edad0bc3071 (diff)
downloadmdadm-32141c1765967e37d6f1accdf124c166bc103c3b.tar.gz
Retire mdassemble
mdassemble doesn't handle container based arrays, no support for sysfs, etc. It has not been actively maintained for years, so time to send it off to retirement. Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super-gpt.c')
-rw-r--r--super-gpt.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/super-gpt.c b/super-gpt.c
index bb38a97..a1e9aa9 100644
--- a/super-gpt.c
+++ b/super-gpt.c
@@ -47,7 +47,6 @@ static void free_gpt(struct supertype *st)
st->sb = NULL;
}
-#ifndef MDASSEMBLE
static void examine_gpt(struct supertype *st, char *homehost)
{
struct GPT *gpt = st->sb + 512;
@@ -66,7 +65,6 @@ static void examine_gpt(struct supertype *st, char *homehost)
);
}
}
-#endif /* MDASSEMBLE */
static int load_gpt(struct supertype *st, int fd, char *devname)
{
@@ -199,7 +197,6 @@ static struct supertype *match_metadata_desc(char *arg)
return st;
}
-#ifndef MDASSEMBLE
static int validate_geometry(struct supertype *st, int level,
int layout, int raiddisks,
int *chunk, unsigned long long size,
@@ -210,13 +207,10 @@ static int validate_geometry(struct supertype *st, int level,
pr_err("gpt metadata cannot be used this way\n");
return 0;
}
-#endif
struct superswitch gpt = {
-#ifndef MDASSEMBLE
.examine_super = examine_gpt,
.validate_geometry = validate_geometry,
-#endif
.match_metadata_desc = match_metadata_desc,
.load_super = load_gpt,
.store_super = store_gpt,