Remove supertype->devfd

It is never used.
This commit is contained in:
Neil Brown 2008-05-27 09:18:40 +10:00
parent 1ed3f38758
commit 5869a76c90
2 changed files with 1 additions and 2 deletions

View File

@ -452,7 +452,6 @@ struct supertype {
/* extra stuff used by mdmon */
struct active_array *arrays;
int devfd;
int sock; /* listen to external programs */
int mgr_pipe[2]; /* communicate between threads */
int mon_pipe[2]; /* communicate between threads */

View File

@ -196,7 +196,6 @@ int main(int argc, char *argv[])
/* hopefully it is a container - we'll check later */
container = malloc(sizeof(*container));
container->devfd = mdfd;
container->devnum = fd2devnum(mdfd);
container->devname = devnum2devname(container->devnum);
@ -269,6 +268,7 @@ int main(int argc, char *argv[])
exit(3);
}
close(mdfd);
mlockall(MCL_FUTURE);