summaryrefslogtreecommitdiff
path: root/Manage.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:14:38 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:14:38 +1100
commit1686dc25ecf60a9b7691d73fc2b5a7e08184c940 (patch)
tree828cbf76ac4e341c9c50fb9e2a90efcdefd5e76b /Manage.c
parent3da92f272d017b1817b13f37f41c1ed4d6117291 (diff)
Find super from fd on an array.
We used to use the major/minor numbers, but that isn't sufficient any more, so pass the fd, and possibly check 'text' version.
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Manage.c b/Manage.c
index 09d397b7..f17105a8 100644
--- a/Manage.c
+++ b/Manage.c
@@ -202,8 +202,7 @@ int Manage_subdevs(char *devname, int fd,
return 1;
}
- tst = super_by_version(array.major_version,
- array.minor_version);
+ tst = super_by_fd(fd);
if (!tst) {
fprintf(stderr, Name ": unsupport array - version %d.%d\n",
array.major_version, array.minor_version);
@@ -308,8 +307,7 @@ int Manage_subdevs(char *devname, int fd,
}
remove_partitions(tfd);
- st = super_by_version(array.major_version,
- array.minor_version);
+ st = dup_super(tst);
if (array.not_persistent==0)
st->ss->load_super(st, tfd, NULL);