aboutsummaryrefslogtreecommitdiff
path: root/lib
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-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-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-08-18sg_inq+sg_vpd: more updates but not finishedDouglas Gilbert
The sg_inq+sg_inq work is mainly JSON additions. sg_vpd has a new --sinq_inraw=RFN option. Update and place names for the 64 TapeAlert flags in the library. This improves TapeAlert reporting for sg_inq, sg_vpd and sg_logs. Refine the description of the VPD page merge of processing for sg_inq and sg_vpd to only include _T10_ defined pages, so the vendor specific VPD page processings of those utilities are still separate. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@969 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-12sg_inq+sg_vpd: more JSON work (add SG_C_CPP_ZERO_INIT)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@966 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-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-15sg_inq+sg_vpd: JSON work continuesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@960 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-06sg_vpd: more JSON workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@958 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-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-05-24sg_get_elem_status: change '--maxlen=' option default to 1056 (was 32), ↵Douglas Gilbert
other cleanups git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@953 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
2022-05-06sg_inq: add support for Hitachi/HP open-v ldev names; sg_rep_zone: more json ↵Douglas Gilbert
work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@951 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-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-21Merge pull request #16 from bvanassche/masterDouglas Gilbert
Enable continuous integration git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@947 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21sg_opcodes: add --inhex=FN to process earlier -HHH, add experimental ↵Douglas Gilbert
--json[=JO] option; sg_turs: change nanosleep() to Sleep() in MinGW git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@945 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-02-18sg_read_buffer: add --eh_code= and --no_output options; sg_inq, sg_vpd: ↵Douglas Gilbert
Device Identication VPD page, change IEEE Company_id to AOI git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@938 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-01-28cleanup masks for PDT [0x1f] and group_number [0x3f]Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@934 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-01-27sg_lib: add sg_pdt_s_eq() to cope with ZBC disks which may be either PDT_ZBC ↵Douglas Gilbert
(if host managed) or PDT_DISK git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@933 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-01-21sg_rep_density: new utility for decoding the response of Report density ↵Douglas Gilbert
support command [ssc (tape)] git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@932 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-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-15this is a bugfix rev on release 1.47 [r919,920]Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@921 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-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-09-26sg_vpd: zoned block dev char vpd: add zone alignment mode and zone starting ↵Douglas Gilbert
LBA granularity; gcc -fanalyzer fixes: in sg_pt_linux.c + sg_write_x.c git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@914 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-09-12sg_dd: srand48_r() and mrand48_r() are GNU libc specific, put conditional in ↵Douglas Gilbert
so non-reentrant version used otherwise git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@913 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-08-31sg_get_elem_status: fix issue with '--maxlen=' option, add 2 depopulation ↵Douglas Gilbert
revocation health attributes [sbc5r01] git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@911 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-01sg_ses: fix crash when 'm LEN' < 252Douglas Gilbert
Cleanups suggested cppcheck git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@907 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-07-29sg_zones: finish initial support for REPORT ZONE DOMAINS and REPORT REALMSDouglas Gilbert
Lots of clean-up based on Coverity and other code checkers. Add some new inhex folder entries to testing those new ZBC-2 commands. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@906 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-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
2021-06-07sg_vpd: fix do_hex type on some recent pages; sg_dd: don't close negative ↵Douglas Gilbert
file descriptors; pt_linux_nvme: fix fua setting git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@903 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-28sg_lib: add sg_get_zone_type_str()Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@902 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-15sg_lib: add sg_scsi_status_is_bad(); testing/ workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@901 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-04sg_logs: additions to Volume statistics lpage [ssc5r05c]; fixes for FreeBSD 10.3Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@900 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-03sg_ses: On Windows fix 'No command (cdb) given'Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@898 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-05-03more lib/sg_pt_freebsd.c tweaksDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@897 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