Incremental: don't try to load_container() for a subarray

mdadm -IRs would exit with a non-zero status because of this.

Reported-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Artur Paszkiewicz 2016-08-09 10:05:51 +02:00 committed by Jes Sorensen
parent e19a149c72
commit c012223056
1 changed files with 5 additions and 1 deletions

View File

@ -1347,8 +1347,12 @@ restart:
if (devnm && strcmp(devnm, me->devnm) != 0)
continue;
if (devnm && me->metadata[0] == '/') {
if (me->metadata[0] == '/') {
char *sl;
if (!devnm)
continue;
/* member array, need to work on container */
strncpy(container, me->metadata+1, 32);
container[31] = 0;