iprutis: Don't show RAID migration level for secondary devices.
When query-raid-levels-migrate is issued to a secondary (Non-optimized) device on a dual adapter configuration, we send a Query Array configuration with the Array Migrate Query option, which ends up retrieving every RAID level supported by the adapter instead of only returning the possible migration level candidates. This patch blocks query-raid-levels-migrate for RAIDS that aren't ready for migration, which avoids displaying impossible level candidates for secondary devices and better complies with the behavior of the ncurses interface. Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
This commit is contained in:
parent
c82bf3950e
commit
da3fe0fc80
1 changed files with 5 additions and 0 deletions
|
|
@ -16672,6 +16672,11 @@ static int query_raid_levels_raid_migrate(char **args, int num_args)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!dev->array_rcd->migrate_cand) {
|
||||
scsi_err(dev, "%s is not a candidate for array migration.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* query array config for volume set migrate status */
|
||||
rc = ipr_query_array_config(dev->ioa, 0, 0, 1, dev->array_id, &qac_data);
|
||||
if (rc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue