aboutsummaryrefslogtreecommitdiff
path: root/scripts/rescan-scsi-bus.sh
AgeCommit message (Collapse)Author
2022-09-30rescan-scsi-bus: speed large multipath scansDouglas Gilbert
Speed multipath scans with many LUNs by caching multipath LUN info in temporary file, see: https://github.com/doug-gilbert/sg3_utils/issues/22 Fix small bug in last commit, see: https://github.com/doug-gilbert/sg3_utils/issues/24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@973 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-26rescan-scsi-bus.sh speed testonline()Douglas Gilbert
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: https://github.com/doug-gilbert/sg3_utils/issues/24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-12rescan-scsi-bus.sh: add option --no-lip-scanDouglas Gilbert
lip is a FC operation and can be used to rescan device but it can not specify the channel and target. So add a new option to scan FC hosts according to the SCSI general interface in sysfs: /sys/class/scsi_host/hostX/scan. The default value of no_lip_scan is 0 which does not change the default behavior. Fix https://github.com/doug-gilbert/sg3_utils/issues/20 Signed-off-by: Wenchao Hao <haowenchao@huawei.com> git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@967 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-07rescan-scsi-bus: sgdevice26: do not traverse sg class if scsi_device isnot addedDouglas Gilbert
For system which has a massive number of scsi_devices, it would takes a long time to traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific scsiid host:channel:target:lun did not added, the traverse would find no sg neither. Signed-off-by: Wenchao Hao <haowenchao@huawei.com> From: https://github.com/doug-gilbert/sg3_utils/pull/21 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@965 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-27rescan-scsi-bus.sh: fix handling of '-I <secs>' option ; sg_inq+sg_vpd: more ↵Douglas Gilbert
JSON work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@962 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-06-27more JSON work: sense data and vpd device id, start on sg_vpdDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@956 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-06-25sg_rem_rest_elem: new utility for removing or restoring elements; bug fixesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@955 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21https://github.com/doug-gilbert/sg3_utils/pull/17 applied with tweaks: add ↵Douglas Gilbert
timeout parameter git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@946 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-02-19rescan-scsi-bus.sh: rev 815 changed the order of listing hosts from numeric ↵Douglas Gilbert
to alphabetical, change it back to numeric git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@939 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-02-07rescan-scsi-bus.sh: Use "seq -s"Douglas Gilbert
Since the commit [git: 8c86fe2; svn rev 815 "library: add to '.so' name; rescan-scsi-bus: multiple patches to sync with Suse], we correctly use quoting when we print $idsearch or $lunsearch. This causes a change in the output of the script, because these number lists are generated by the GNU seq utility, which uses "\n" as default separator, and the quoting now causes the newlines to be preserved. Use "seq -s" to generate space-separated lists instead. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@936 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-01-19round of coverity identified issue fixes (and non-issues)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@931 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-01-03rescan-scsi-bus.sh: apply fix for '-r' from ↵Douglas Gilbert
https://github.com/doug-gilbert/sg3_utils/pull/10/ from Nitin U. Yewale, broken by rev 867 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@929 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-09-17sync with fixes from Redhat, via github; remove testing/Makefile.cplus and ↵Douglas Gilbert
testing/Makefile.cplus_fb git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@832 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-03-27library: add to '.so' name; rescan-scsi-bus: multiple patches to sync with SuseDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@815 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-11-12sg_scan(win32): expand limits for big arrays; rescan-scsi-bus: widen LUN 0 ↵Douglas Gilbert
only scanning; add SG_LIB_WINDOWS_ERR git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@795 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-07-06sg_pr2serr.h: add sg_scnpr() [like lk scnprintf()]; rescan-scsi-bus.sh ↵Douglas Gilbert
code_manpage cleanup git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@780 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-06-16rescan-scsi-bus.sh: add --ignore-rev; sg_persist: add RLR_C bit to Read ↵Douglas Gilbert
capabilities; sg_pt_freebsd+win32: fix SNTL error crashes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@778 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-09-18https://github.com/hreinecke/sg3_utils branch sles15 synced 20170914; change ↵Douglas Gilbert
sg_ll_*() function's 'int noisy' to bool git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@715 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-05-11rescan-scsi-bus.sh + 55-scsi-sg3_id.rules: fixes from HR at SuseDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@703 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-02-28rescan-scsi-bus.sh: harden codeDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@681 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-02-02sg_unaligned.h: gets for variable length unsigned integers; sg_inq: version ↵Douglas Gilbert
descriptor list to 20160125 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@658 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-01-09another rescan-scsi-bus.sh fix from SuseDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@656 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-12-20rescan-scsi-bus.sh: updates from Suse; sg_lib: add 'sense' categories for ↵Douglas Gilbert
SCSI statuses; pr2serr() rework; drop SUGGEST_* git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@654 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-05-12sg_lib: Linux: ENXIO errno --> SG_LIB_CAT_NOT_READY; asc/ascq codes --> T10 ↵Douglas Gilbert
20150423 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@644 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-04-01rescan-scsi-bus.sh+sg_rdac+sg_inq+sg_vpd: updates from Sean Stewart, NetAppDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@640 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-12-21sg_inq: improve NAA handling in VPD 0x83, sg_senddiag: fix bug with --raw, ↵Douglas Gilbert
sg_ses: aes dpage add PCIe/NVMe, rescan-scsi-bus.sh: add --issue-lip-wait, sg_readcap: add ZBC's rc_basis git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@623 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-01-23scripts/rescan-scsi-bus.sh: check for issue_lip; add suse build infrastructureDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@547 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-12-02sg_inq: another encode_whitespaces fix from HR; add LU_CONG to sg_inq and sg_vpdDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@536 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-08-28remove externs from global function decls; rescan-scsi-bus.sh work; O_EXCL ↵Douglas Gilbert
for Windows git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@511 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-07-20rescan-scsi-bus.sh and sg_inq+sg_vpd patches from HRDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@502 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-01-10move rescan-scsi-bus.sh to scripts folder; sg_inq --export correctionsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@474 6180dd3e-e324-4e3e-922d-17de1ae2f315