]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove get_one_disk
authorNeilBrown <neilb@suse.de>
Mon, 22 Oct 2012 06:23:15 +0000 (17:23 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Oct 2012 06:23:15 +0000 (17:23 +1100)
It has never been used, and there isn't really any place that
could usefully use it.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
util.c

diff --git a/mdadm.h b/mdadm.h
index e142c502d8d0f1d264c40d920b5f6e94644a8ac3..ac051178a711deb3eb52d3a724e5134f1dbccdf5 100644 (file)
--- a/mdadm.h
+++ b/mdadm.h
@@ -956,8 +956,6 @@ extern struct supertype *dup_super(struct supertype *st);
 extern int get_dev_size(int fd, char *dname, unsigned long long *sizep);
 extern int must_be_container(int fd);
 extern int dev_size_from_id(dev_t id, unsigned long long *size);
-extern void get_one_disk(int mdfd, mdu_array_info_t *ainf,
-                        mdu_disk_info_t *disk);
 void wait_for(char *dev, int fd);
 
 /*
diff --git a/util.c b/util.c
index 4581fbd45a178f4796692c7b1d6b88e4b93fb855..498162f0da4cf61c9e7854d8f8eb969222c30dfb 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1312,18 +1312,6 @@ int check_partitions(int fd, char *dname, unsigned long long freesize,
        return 0;
 }
 
-void get_one_disk(int mdfd, mdu_array_info_t *ainf, mdu_disk_info_t *disk)
-{
-       int d;
-
-       ioctl(mdfd, GET_ARRAY_INFO, ainf);
-       for (d = 0 ; d < MAX_DISKS ; d++) {
-               if (ioctl(mdfd, GET_DISK_INFO, disk) == 0 &&
-                   (disk->major || disk->minor))
-                       return;
-       }
-}
-
 int open_container(int fd)
 {
        /* 'fd' is a block device.  Find out if it is in use