summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-04-11 18:54:26 +0200
committerJes Sorensen <jsorensen@fb.com>2017-04-11 18:54:26 +0200
commit32141c1765967e37d6f1accdf124c166bc103c3b (patch)
tree116d336b6aa10881f7df01824f77f845fcc4d933 /Manage.c
parentRevert "mdadm/grow: reshape would be stuck from raid1 to raid5" (diff)
downloadmdadm-32141c1765967e37d6f1accdf124c166bc103c3b.tar.xz
mdadm-32141c1765967e37d6f1accdf124c166bc103c3b.zip
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 9e691320..bb84d284 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