Skip to content

Commit

Permalink
Issue #50 Add FCP devices cannot display more than 1023 luns per SAN …
Browse files Browse the repository at this point in the history
…Adapter per Controller

This patch extends the buffer limit
for sg_luns command

Signed-off-by: Pooja Kulkarni <[email protected]>
  • Loading branch information
Pooja Kulkarni authored and danielhb committed Apr 5, 2016
1 parent aebe3ae commit aefb27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_lun_dict(lun_dict, adapter, port, fcp_lun):
if port not in lun_dict[adapter]:
lun_dict[adapter].update(wwpn_lun_dict)
fcp_lun_dict = {fcp_lun: sg_dev}
out, err, rc = run_command(['sg_luns', '/dev/' + sg_dev])
out, err, rc = run_command(['sg_luns', '-m', '32768', '/dev/' + sg_dev])
if rc == 0:
luns = parse_sg_luns(out)
for lun in luns:
Expand Down

0 comments on commit aefb27b

Please sign in to comment.