On Mon, 10 Jan 2011 12:29:12 +0100 Adam Kwolek <adam.kwolek@xxxxxxxxx> wrote: > Add disks fails due to empty sys name field. > sysfs_init fills out required fields for add disk operation. > > Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> Applied, thanks. NeilBrown > --- > > Grow.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Grow.c b/Grow.c > index 9d31087..2ca9835 100644 > --- a/Grow.c > +++ b/Grow.c > @@ -1692,7 +1692,8 @@ static int reshape_array(char *container, int fd, char *devname, > st->ss->container_content(st, subarray); > struct mdinfo *d; > > - if (info2) > + if (info2) { > + sysfs_init(info2, fd, st->devnum); > for (d = info2->devs; d; d = d->next) { > if (d->disk.state == 0 && > d->disk.raid_disk >= 0) { > @@ -1703,7 +1704,8 @@ static int reshape_array(char *container, int fd, char *devname, > add_disk(fd, st, info2, d); > } > } > - sysfs_free(info2); > + sysfs_free(info2); > + } > } > > if (reshape.blocks == 0) { -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html