From 32141c1765967e37d6f1accdf124c166bc103c3b Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Tue, 11 Apr 2017 12:54:26 -0400 Subject: 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 --- Manage.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Manage.c') 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 -- cgit v1.2.1