aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2022-08-12Prepare for removing /proc/scsi from the Linux kernelDouglas Gilbert
From: Bart Van Assche <bvanassche@acm.org> The sg3_utils package is the only /proc/scsi user I know of. Although support for systems without /proc/scsi was added to rescan_scsi_bus.sh more than ten years ago, a few references to /proc/scsi remain. Convert these references into the recommended interfaces. Posted to linux-scsi@vger.kernel.org on 20220810 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@968 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-12sg_lib: document internal json interface in include/sg_pr2serr.h; codespell ↵Douglas Gilbert
fixes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@952 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-04-01move some hex file from examples to inhex directory; add ↵Douglas Gilbert
testing/sg_take_snap; remove no_waitq from testing git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@893 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-12-07gcc-10: suppress warningsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@868 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-08-03sg_raw: fix --cmdfile= handling; add --nvm option; sg_pt: add do_nvm_pt(); ↵Douglas Gilbert
sg_lib: fix crash in sg_f2hex_arr() when fname not found git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@860 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
2019-10-27sg_logs: change '-ll' option to suppress subpages=0xff, apart from page ↵Douglas Gilbert
0x0,0xff; asc/ascq sync with asc-num.txt @t10 20191014; sg_chk_asc: tweak for LF terminated lines git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@834 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-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-12-29sgp_dd: clean-up; more testing work for v4 driverDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@803 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-12-07add: SPDX-License-Identifier: BSD-2-Clause (or gpl-2-or-later); ↵Douglas Gilbert
testing/sgs_dd.c work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@797 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-07-15sg_lib: fix bug in producing exit status stringsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@783 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-29sg_opcode: support MLU, Multiple Logical Units (18-045r1); sg_lib: ↵Douglas Gilbert
sg_simple_inquiry_pt(); ./configure: option --enable-debug added for testing git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@779 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-02-22sg_lib: add sg_if_can2stdout(); use uint8_t instead of unsigned char; ↵Douglas Gilbert
Windows pass-through work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@754 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-02-19sg_raw: add --raw option (for CF in binary); sg_lib: add ↵Douglas Gilbert
sg_get_nvme_opcode_name() and sg_is_aligned(); sg_vpd: fully implement Device Constituents vpage git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@753 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-01-19update BSD license from 3 to 2 clause aka FreeBSD license (without reference ↵Douglas Gilbert
to FreeBSD project); more hex2* cleanup git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@746 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-01-19add hex2stdout(), hex2stderr() and hex2str(); add testing/sg_tst_nvme; clean ↵Douglas Gilbert
Makefile.freebsd in examples/ and testing/; NVMe error processing git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@745 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-11-05moved from testing/sg_persist_tst.sh back to examplesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@730 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-11-04move some testing utilities out of the 'examples' and 'utils' directory into ↵Douglas Gilbert
the new 'testing' directory; sg_vpd: add enclosure services device characteristics vpage git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@729 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-05-28cdb naming clean upDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@709 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-04-24sg_decode sense: add --cdb option; add stdint.h to some headersDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@692 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-27sg_logs: LPS misalignment lpage; sg_format: add ffmt option; sg_lib: big ↵Douglas Gilbert
sense reporting rework git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@657 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-12-10unaligned cleanups for C++; misc workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@653 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-02-27sg_lib: sg_get_category_sense_str() SG_LIB_CAT_OTHER fix; sg_xcopy cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@638 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-02-16examples/sg_tst_async: cleanup; sg_write_same: cleanup, mainly man pageDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@634 6180dd3e-e324-4e3e-922d-17de1ae2f315
2015-02-07sg_simple_aio.c: remove; sg_iovec_tst.c: improveDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@633 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-10-31sg_vpd: add zoned block device characteristics page; sg_ses: sync with ses3r07Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@619 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-09-13Use '-iquote ../include' in Makefiles to prefer local headersDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@606 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-08-29sg_raw: with -vvv decode T10 CDB name; sg_lib: clean up service action ↵Douglas Gilbert
string functions git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@603 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-08-28sg_unaligned.h: add header for building parameters; sg_scan.c.win32 cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@602 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-08-21sg_vpd: fix '-I - -a -r' (it should not try to guess first VPD page); more ↵Douglas Gilbert
examples/sg_tst_async work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@601 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-08-19examples/sg_tst_async.cpp: allow multiple devices; -M <maxq_p_thr>Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@600 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-07-13examples/sg_tst_async: error handling, random numbers and queuesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@593 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-07-11examples/sg_tst_async: add uniform distribution of pseudo random LBAsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@592 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-07-10sg_format: make '-FFF' bypass mode sense/select, add --mode=MP; trim ↵Douglas Gilbert
trailing spaces in dStrHex() and friends; add examples/sg_tst_async git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@591 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-06-26bump to version 1.40; sg_copy_results: response lengthsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@590 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-06-12examples/sg_persist_tst.sh: add --exclusive optionDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@588 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-05-22sg_vpd: Supported block lengths and protection types + Block device ↵Douglas Gilbert
characterics extension VPD pages added [sbc4r01/02] git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@583 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-05-16other half of the sg_get_category_sense_str() changesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@578 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-05-09sg_ses, sg_persist, sg_logs, sg_readcap, sg_read_buffer, sg_luns: add ↵Douglas Gilbert
--readonly option; SG_PERSIST_O_RDONLY ev git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@573 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-04-11sg_write_buffer: add --bpw=CS option to call write buffer multiple times for ↵Douglas Gilbert
big blobs; examples/sgq_dd: re-add old utility as example git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@567 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-11-20sg_tst_context: add '-R' option for ready_afterDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@533 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-11-19sync asc/ascq codes with T10 dated 20131110; add sg_tst_contextDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@532 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-11-11fiddle with sg_tst_excl2 and sg_tst_excl3Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@531 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-11-11examples/sg_tst_excl: add -xx option; work on other sg_tst_excl*Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@530 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-10-31upgrade automake to version 1.13.3 (in ubuntu 13.10)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@527 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-10-30examples/sg_tst_excl: only accept char devices to stop sg write/read hurting ↵Douglas Gilbert
block dev git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@526 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-10-29sg_luns: guard against garbage response; sg_tst_excl* workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@525 6180dd3e-e324-4e3e-922d-17de1ae2f315