aboutsummaryrefslogtreecommitdiff
path: root/doc/sg3_utils.8
AgeCommit message (Collapse)Author
2022-11-04add two new exit status values: SG_LIB_CAT_STANDBY and ↵Douglas Gilbert
SG_LIB_CAT_UNAVAILABLE which refine the 'not ready' exit status git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@980 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-01sg_read_block_limits: fix granularity value, add --mloi option; sg_lib: add ↵Douglas Gilbert
sg_ll_read_block_limits_v2(); sg_logs: json work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@978 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-10-07sg3_utils: freestanding sg_pr2serr.c pr_s 25+26Douglas Gilbert
In order to use the new JSON code in pr2serr.[hc] in the lsscsi package, changes were made to remove dependencies on the rest of the sg_lib library. https://github.com/doug-gilbert/sg3_utils/pull/25 and .../pull/26 applied with minor change. More pull requests await the next revision. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@974 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-05sg_inq+sg_vpd: ongoing updates; rescan_scsi_bus.shDouglas Gilbert
https://github.com/doug-gilbert/sg3_utils/pull/21 change to rescan_scsi_bus.sh was applied in an earlier commit but not noted. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@970 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-19another round of sgj_* function renaming; sg_inq+sg_vpd: add new Block ↵Douglas Gilbert
Limits VPD page code git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@961 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-11sg_inq+sg_vpd: merge VPD page processingDouglas Gilbert
This is being done so that ongoing JSON work is not duplicated for both sg_vpd and sg_inq. This might lead to small changes in formatting of VPD (and standard INQUIRY) output. That in turn might break parsing code expecting the former output. Hopefully this will push folks who are parsing to try out JSON output. However JSON output format may not be that stable, hoping for feedback on that front. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@959 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-02sg3_utils.spec: change tarball extension from .tgz to .tar.gz ; fix build ↵Douglas Gilbert
issue with Fedora 36; minor work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@957 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-06-02more sg_get_elem_status workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@954 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-02sg_rep_zones: add experimental --json[=JO] option and generationDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@950 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-17sg_lib: add hex2fp(); sg_rtpg: ↵Douglas Gilbert
https://github.com/hreinecke/sg3_utils/pull/79 applies; json_builder work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@944 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-03-09sg_logs: add --exclude and --undefined options, improve 'last_n' log pages; ↵Douglas Gilbert
add inhex/logs_last_n.hex git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@942 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-03-01zoned disk man page improvementsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@941 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-02-03sg_rep_zones: add --brief option and --find ZT option; sg_modes: improve ↵Douglas Gilbert
handling of zbc disks with pdt=0x14 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@935 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-12-23sg_logs: tweak the meaning of --list option; sg_opcodes: cleanup error reportingDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@925 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-12-04sg_z_act_query: fix usage callDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@924 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-11-20sg_z_act_query: new utility for sending either a Zone activate or Zone query ↵Douglas Gilbert
command; sg_rep_zones: add Report zone starting LBA granularity field in REPORT ZONES response [zbc2r12]; sg_decode_sense: add --nodecode option; initialize all sense buffers to 0; rework main README file git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@923 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-01sg_requests: fix bug in outputDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@915 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-08-30improve transport error handling. To fix report of a BAD_TARGET transport ↵Douglas Gilbert
error but the utility still continued. introduce SG_LIB_TRANSPORT_ERROR [35] exit status git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@910 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-08-04sg_ses: guard against small '--maxlen=' valuesDouglas Gilbert
In several utilities guard against '--maxlen=' < 4 or < 16 as they seem to serve no useful purpose other than finding awkward corner cases that may trip up these utilities. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@908 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-03bump sg_pt library version number; doco tweaksDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@899 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-02major rework of lib/sg_pt_freebsd.c; sg_raw: fix prints of NVMe NVM command ↵Douglas Gilbert
names git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@896 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-04-15change links to http://sg.danny/cz/sg/* to httpsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@895 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-04-08tweaking utilities in testing directoryDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@894 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
2021-03-22sg_dd: add cdl= operand for command duration limit indexesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@880 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-03-03sg_ses: add --all (-a) option, same action as --join; another freebsd fixDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@878 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-02-22sg_pt_freebsd: allow device names without leading /dev/ , fix for regression ↵Douglas Gilbert
introduced in rev 731 (ver: 1.43) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@877 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-02-09sg_dd: add command timeout after comma in time= operand; ↵Douglas Gilbert
testing/sg_mrq_dd+sgh_dd work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@875 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-12-07gcc-10: suppress warningsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@868 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-11-10tweak transport error handling in Linux; sg_compare_and_write: add examples ↵Douglas Gilbert
section to its manpage; testing git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@866 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-10-09sg_dd: add 00,ff,random flags; sg_modes: document '-s' optionDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@864 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-09-03C++ fix in library, testing cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@862 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-02asc/ascq match asc-num.txt @t10 20200624; testing/sg_mrq_testing: new, for ↵Douglas Gilbert
blocking mrq usage git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@853 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-06-05sg_rep_pip: new utility; testing/sg_tst_ioctl.c workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@852 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-05-03sg_ses: use fan speed factor field for calculation [ses4r04]; sg_lib: ↵Douglas Gilbert
reprint cdb with illegal request sense key git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@850 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-04-24sg_get_elem_status: add ralwd bit sbc4r20a, sg_rep_zones: print invalid ↵Douglas Gilbert
write pointer LBA as -1 rather than 16 'f's git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@849 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-04-13sg_lib: sntl: add flush, synchronize cache, write same and dummy start stop ↵Douglas Gilbert
unit commands; wire cache mpage's WCE to nvme 'volatile write cache' git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@848 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-03-09bump config to version 1.46 betaDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@845 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-02-03testing/sgh_dd: add ofsplit= to test keep share and dout offset flagsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@840 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-01-11sg_logs: add Command duration limits statistics lpage; sg_opcodes: include ↵Douglas Gilbert
RWCDLP field as extension of CDLP field; sgh_dd work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@838 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-12-06changes for zbc2r04, awaiting new mode page number; sgh_ddDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@836 6180dd3e-e324-4e3e-922d-17de1ae2f315
2019-11-18testing/sgh_dd and sg_tst_ioctl updatesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@835 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-09sg_get_num()+sg_get_llnum(): add 'e' decoding, allow addition; testing: make ↵Douglas Gilbert
now builds both C and C++ programs git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@831 6180dd3e-e324-4e3e-922d-17de1ae2f315