Remove get_one_disk

It has never been used, and there isn't really any place that
could usefully use it.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2012-10-22 17:23:15 +11:00
parent ddc1b11fb5
commit 4ec2cbe96d
2 changed files with 0 additions and 14 deletions

View File

@ -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);
/*

12
util.c
View File

@ -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