aboutsummaryrefslogtreecommitdiff
path: root/src/sg_modes.c
AgeCommit message (Collapse)Author
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-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-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
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-06-11sg_read_buffer: fix --length= problem; pt: new configure option ↵Douglas Gilbert
--enable-pt_dummy builds the library with sg_pt_dummy.c instead of OS specific code git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@904 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-12-24sg_sanitize + sg_format: when --verbose given once report probable success; ↵Douglas Gilbert
without --verbose 'no news is good news' git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@871 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-03-01Rename VPD_ZBC_DEV_CHARS from zbdc to zbdch, to distinguish it from zbdct ↵Douglas Gilbert
for the ZBC device control mpage; sgh_dd work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@843 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
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-04-11sg_modes+sg_logs: placeholders for Commmand duration limits pages (sbc4r17 ↵Douglas Gilbert
for spc6r?) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@817 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-09-11sg_vpd: decode some WDC/Hitachi vendor VPD pages; sg_modes: accept acronym ↵Douglas Gilbert
for page/subpage codes; attempted 1.43 release git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@789 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-05-24add SG_LIB_LOGIC_ERROR and SG_LIB_CONTRADICT; implement across many ↵Douglas Gilbert
utilities and increase usage of sg_convert_errno() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@774 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-05-15cleanup of error messages around sg_cmds_open_device(); add flock error msg ↵Douglas Gilbert
for ddpt git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@772 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-04-15sg_wr_mode: add --rtd option for RTD bit; sg_lib: add ↵Douglas Gilbert
sg_ll_mode_select6_v2() and sg_ll_mode_select10_v2() for RTD bit git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@768 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-03-30sg_lib: add SG_LIB_LBA_OUT_OF_RANGE; sg_format: add --dry-run; sg_unmap: add ↵Douglas Gilbert
--all=ST,RN[,LA] , --dry-run + --force git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@765 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-03-05sg_ses: --data=@FN with --status now decodes dpage(s) in FN; add --quiet ↵Douglas Gilbert
option to suppress messages git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@758 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-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-10-31sg_lib: add sg_msense_calc_length(); sg_pt: add dummy pt_device_is_nvme()Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@727 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-10-26sg_modes: add Out of band management control mpageDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@726 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-13further two valued ints converted to boolDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@721 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-10-09convert lots of two valued 'int's to bool; add sg_ll_inquiry_v2() ↵Douglas Gilbert
sg_ll_write_buffer_v2() sg_get_sfs_name() and sg_decode_transportid_str() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@719 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-04-05clang --analyze static checker clean upsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@689 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-11-26sg_ses->ses3r11, sg_rep_zones->zbc-r04, sg_logs+sg_vpd+sg_sanitize->sbc4r07Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@648 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-01-10sg_modes: make '-HHH' output suitable as input to 'sdparm --inhex='Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@627 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-05-15add 'sense' categories for reservation conflict, data protect and protection ↵Douglas Gilbert
information violations; add sg_get_category_sense_str() to API git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@577 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
2013-06-04sg_compare_and_write: fix wrprotect bugDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@498 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-05-08sg_xcopy: add --on_src and --on_dst options; C++ cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@494 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-03-06sg_luns: add --linux option and other workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@486 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-02-28more UA exposure via noisy argument; docoDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@485 6180dd3e-e324-4e3e-922d-17de1ae2f315
2012-12-11run cleanfile over C source and headersDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@470 6180dd3e-e324-4e3e-922d-17de1ae2f315
2012-09-20sync with spc4r36; new proto_id: protocol specific port identifierDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@457 6180dd3e-e324-4e3e-922d-17de1ae2f315
2012-02-24more sync with spc4r34 and sbc3r30Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@442 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-11-14add Power consumption mode and VPD pagesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@426 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-10-06sbc3r28 sync; sg_ses experimentDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@416 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-05-18sg_ses: rework descriptor output and indexesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@397 6180dd3e-e324-4e3e-922d-17de1ae2f315
2010-10-31sbc3r25 renames 'thin' provisioning' to 'logical block provisioning': ↵Douglas Gilbert
multiple changes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@361 6180dd3e-e324-4e3e-922d-17de1ae2f315
2010-03-01ssc4r01 and IBM LTO Ultium tape drive log pagesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@328 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-08-27preliminary spc4r21 sync, manpages for extended scsi_start and scsi_stopDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@291 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-07-24reverse out printf(%#) change, broken for %#02x when value is 0Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@284 6180dd3e-e324-4e3e-922d-17de1ae2f315