diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 10:58:06 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 10:58:06 +0100 |
commit | 0fb69d1dae8851316bee2a7c0b4ca557de7273ee (patch) | |
tree | 953afb5629560ff3efe58a4a301e28626381ea11 /Create.c | |
parent | Assemble: use load_container (diff) | |
download | mdadm-0fb69d1dae8851316bee2a7c0b4ca557de7273ee.tar.xz mdadm-0fb69d1dae8851316bee2a7c0b4ca557de7273ee.zip |
Replace various load_super calls with load_container
When we call load_super expecting to find a container, we now
just call load_container directly.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -169,15 +169,15 @@ int Create(struct supertype *st, char *mddev, inf.raid_disks == 0) { /* yep, looks like a container */ if (st) { - rv = st->ss->load_super(st, fd, - devlist->devname); + rv = st->ss->load_container(st, fd, + devlist->devname); if (rv == 0) have_container = 1; } else { - st = guess_super(fd); + st = super_by_fd(fd, NULL); if (st && !(rv = st->ss-> - load_super(st, fd, - devlist->devname))) + load_container(st, fd, + devlist->devname))) have_container = 1; else st = NULL; |