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:
parent
e19a149c72
commit
c012223056
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue