]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
sysfs: Parse array_state in sysfs_read()
[thirdparty/mdadm.git] / mdmon.c
diff --git a/mdmon.c b/mdmon.c
index ee12b7c788ac0fc969499204343db8f39b124843..0955fcc54a888557436d13ba018f65157dec6339 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -235,7 +235,7 @@ static int make_control_sock(char *devname)
        addr.sun_family = PF_LOCAL;
        strcpy(addr.sun_path, path);
        umask(077); /* ensure no world write access */
-       if (bind(sfd, &addr, sizeof(addr)) < 0) {
+       if (bind(sfd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
                close(sfd);
                return -1;
        }
@@ -408,10 +408,6 @@ static int mdmon(char *devnm, int must_fork, int takeover)
                pr_err("%s: %s\n", devnm, strerror(errno));
                return 1;
        }
-       if (md_get_version(mdfd) < 0) {
-               pr_err("%s: Not an md device\n", devnm);
-               return 1;
-       }
 
        /* Fork, and have the child tell us when they are ready */
        if (must_fork) {
@@ -580,11 +576,6 @@ int restore_stripes(int *dest, unsigned long long *offsets,
        return 1;
 }
 
-void abort_reshape(struct mdinfo *sra)
-{
-       return;
-}
-
 int save_stripes(int *source, unsigned long long *offsets,
                 int raid_disks, int chunk_size, int level, int layout,
                 int nwrites, int *dest,