aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2022-10-21build cleanups for 'make distcheck'Douglas Gilbert
See https://github.com/doug-gilbert/sg3_utils/pull/26, 27 and 28; still need svn:ignore property or maybe global-ignores. More testing/*_dd.c* cleanups for retiring HIPRI and relacing with POLLED (for calling bio_poll() in kernel). git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@975 6180dd3e-e324-4e3e-922d-17de1ae2f315
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-08-07sg_inq+sg_vpd: more JSON work (tpc)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@964 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-24autoconf: 2.71; automake: 1.16.5; libtool: 2.4.6; updates from Ubuntu 22.04Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@949 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
2021-11-05sgp_dd: add check for stdatomic.h presence in configure.ac; scripts: ↵Douglas Gilbert
55-scsi-sg3_id.rules remove outdated rule git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@918 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-10-31sg_logs: additions to Command duration limits statistics log page [spc6r06]; ↵Douglas Gilbert
configure.ac: tweak to accepts uclinux as linux git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@917 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-10-28sg_dd: 'iflag=00,ff' places the 32 bit block address (big endian) into each ↵Douglas Gilbert
block; sgp_dd: major rework, new: --chkaddr which checks for block address in each block git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@916 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-06-23Haiku OS support, add pt function list in sg_pt_dummy.c; add slices to sg_mrq_ddDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@905 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-01-04sg_raw: add --cmdset option to bypass cdb heuristic, add --scan= ↵Douglas Gilbert
first_opcode,last_opcode; bug fixes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@872 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-07-17testing: remove master-slave terminology for sgv4; remove space from end of ↵Douglas Gilbert
source lines for git-svn git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@856 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-01-25sbc4r18+spc6r01 partial catch-up; sg_format: add FORMAT WITH PRESET supportDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@839 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-08-29add sg_get_elem_status utility; inhex folder; some NVMe 1.4; some zbc realmsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@830 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-05-15automake: upgrade to version 1.16.1; autoconf: upgrade to version 2.69 [Fed30]Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@823 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-05-01sg_vpd: add --examine option; gcc-9: suppress warnings; more testing workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@821 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-04-29scripts: update 54-before-scsi-sg3_id.rules; more testing tweaksDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@820 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
2019-03-26sg_inq: update version descriptors to spc5r21; scripts/scsi-sg3_id: update ↵Douglas Gilbert
rules; testing folder work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@814 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
2018-05-02sg_lib: add sg_ll_inquiry_pt(), sg_ll_test_unit_ready_progress_pt(), ↵Douglas Gilbert
sg_ll_request_sense_pt(), sg_ll_send_diag_pt(), sg_ll_receive_diag_pt(); sg_timestamp: add --elapsed, --hex and --no-timestamp options; sg_ses: check for NVMe enclosure bits git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@769 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-02-08struggling with Windows NVMe pass-throughDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@751 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-02-05Info section added to end of ./configure; sg_persist: add --maxlen=LEN ↵Douglas Gilbert
option; sg_opcodes: report when --no-inquiry ignored git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@750 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-01-28add sg_seek and sg_stream_ctl utilities; properly identify vendor-specific ↵Douglas Gilbert
sense; documentation cleanup git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@747 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-01-03sg_inq: add --only option, further sanity checks on --inhex so CDROM std inq ↵Douglas Gilbert
not confused with VPD page 0x80; sgp_dd: use pthread_kill(); various configure.ac and Makefile.am cleanups git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@742 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-10-22sg_lib: add sg_ll_log_sense_v2(), sg_ll_mode_sense10_v2() and ↵Douglas Gilbert
sg_ll_receive_diag_v2(); documentation cleanup; sg_ses: filter join output on dpage element presence (AES dpage) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@722 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-10-03add last n Inquiry/Mode_page data changed log pages; add rescan-scsi-bus.sh ↵Douglas Gilbert
to install list in Makefile git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@718 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-05-03sg_lib: implement 'format' argument in dStrHexStr(); sg_vpd: 3 party copy ↵Douglas Gilbert
VPD page improvements git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@699 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-04-24automake: upgrade to version 1.15Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@693 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-03-25sg_ses: handle 2 bit EIIOE field in aes dpage, expand join handling of SAS ↵Douglas Gilbert
connectors and others; sg_zone: fix debug cdb naming git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@686 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-25shellcheck cleanup on scripts; add release tags; sg_timeout: show data-in ↵Douglas Gilbert
with -vvv git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@679 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-12-01run autogen.sh on U15.10Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@651 6180dd3e-e324-4e3e-922d-17de1ae2f315