Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerical result out of range issue in rescan-scsi-bus.sh #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ioriqqe
Copy link

@ioriqqe ioriqqe commented Dec 6, 2019

It is for Issue #33.
In some situation,the lun of scsi device become a long numeric string(big than integer)
and we hit "Numerical result out of range" warning while running rescan-scsi-bus.sh,i.e.:
OLD: /usr/bin/rescan-scsi-bus.sh: line 132: printf: warning:
12644192649239960158: Numerical result out of range

Update the scripts to handle the lun as String for the instances of luns being impacted.

Signed-off-by: Shuang Qiu ioriqqe@gmail.com

It is for Issue hreinecke#33.
In some situation,the lun of scsi device become a long numeric string(big than integer)
and we hit "Numerical result out of range" warning while running rescan-scsi-bus.sh,i.e.:
OLD: /usr/bin/rescan-scsi-bus.sh: line 132: printf: warning:
12644192649239960158: Numerical result out of range

Update the scripts to handle the lun as String for the instances of luns being impacted.

Signed-off-by: Shuang Qiu <ioriqqe@gmail.com>
@hreinecke
Copy link
Owner

Looks good, but can you respin against the current HEAD?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants