summaryrefslogtreecommitdiff
path: root/Manage.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 /Manage.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 'Manage.c')
-rw-r--r--Manage.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Manage.c b/Manage.c
index 9e69132..bb84d28 100644
--- a/Manage.c
+++ b/Manage.c
@@ -41,12 +41,9 @@ int Manage_ro(char *devname, int fd, int readonly)
*
*/
mdu_array_info_t array;
-#ifndef MDASSEMBLE
struct mdinfo *mdi;
-#endif
int rv = 0;
-#ifndef MDASSEMBLE
/* If this is an externally-managed array, we need to modify the
* metadata_version so that mdmon doesn't undo our change.
*/
@@ -90,7 +87,7 @@ int Manage_ro(char *devname, int fd, int readonly)
}
goto out;
}
-#endif
+
if (md_get_array_info(fd, &array)) {
pr_err("%s does not appear to be active.\n",
devname);
@@ -114,14 +111,10 @@ int Manage_ro(char *devname, int fd, int readonly)
}
}
out:
-#ifndef MDASSEMBLE
sysfs_free(mdi);
-#endif
return rv;
}
-#ifndef MDASSEMBLE
-
static void remove_devices(char *devnm, char *path)
{
/*
@@ -1802,4 +1795,3 @@ int move_spare(char *from_devname, char *to_devname, dev_t devid)
close(fd2);
return 0;
}
-#endif