Do not report legacy unit numbers (do not create legacy aliases) for disks
on port multiplier ports above first two. They don't fit into ATA_STATIC_ID scheme and so can't be mapped properly. No need to pollute dev.
This commit is contained in:
parent
41af50287c
commit
ce6cf987d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221384
@ -3600,9 +3600,12 @@ xpt_path_legacy_ata_id(struct cam_path *path)
|
||||
}
|
||||
xpt_unlock_buses();
|
||||
}
|
||||
if (path->target != NULL)
|
||||
return (bus_id * 2 + path->target->target_id);
|
||||
else
|
||||
if (path->target != NULL) {
|
||||
if (path->target->target_id < 2)
|
||||
return (bus_id * 2 + path->target->target_id);
|
||||
else
|
||||
return (-1);
|
||||
} else
|
||||
return (bus_id * 2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user