aboutsummaryrefslogtreecommitdiff
path: root/testing/sgh_dd.cpp
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-18sg_inq+sg_vpd: ongoing JSON updatesDouglas Gilbert
Probably at the end of the JSON work for sg_inq since it only has four vendor specific VPD pages. sg_vpd has a lot more vendor specific VPD pages which are yet to be 'jsonified'. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@971 6180dd3e-e324-4e3e-922d-17de1ae2f315
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-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-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-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-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-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-16sg_dd: don't use srand48_r() and mrand48_r() as they are GNU extensions. Use ↵Douglas Gilbert
the non-reentrant versions instead git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@909 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-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-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-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-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-29sg_vpd: fix vendor struct opts_t alignment; 3rd attempt to release 1.46Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@886 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-03-20sg_opcodes: improve handling of RWCDLP field; sg_lib: add ZBC (2020) feature ↵Douglas Gilbert
set entries git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@879 6180dd3e-e324-4e3e-922d-17de1ae2f315
2021-02-20testing updates, mainly sgs_ddDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@876 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-13testing update for hipri; testing/uapi_sg.h updateDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@873 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-13sg_dd: add oflag=nocreat and conv=nocreat : OFILE must exist; similar in ↵Douglas Gilbert
testing sgh_dd+sg_mrq_dd git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@865 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-09-28sg_dd: tweak unrecovered error reporting; testing sg*_dd work, new uapi_sg.hDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@863 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-22partial_clear_scsi_pt_obj() declared in sg_pt.h; testing directory workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@861 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-07-31sg_raw: increase maximum data-in/out size from 64 KB to 1 MB; testing sgh_dd ↵Douglas Gilbert
and sg_mrq_dd work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@859 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-07-24sg_turs: estimated time-to-ready, add --delay=MS option; sg_requests: ↵Douglas Gilbert
cleanup; sg_pt: add partial_clear_scsi_pt_obj, get_scsi_pt_cdb_len and get_scsi_pt_cdb_buf git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@857 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-07-13sg_lib: asc/ascq match asc-num.txt @t10 20200708 [spc6r02]; work on ↵Douglas Gilbert
testing/sg_mrq_dd.cpp git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@854 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-05-13testing/sgh_dd: check for bs/READ_CAPACITY(LBsize) mismatch; fix some ↵Douglas Gilbert
compile warnings and some --version issues git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@851 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-04-11sg_lib: Linux NVMe SNTL: add read, write and verifyDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@847 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-04-04sync with sbc4r19a; start req/write SNTL work; testing fixesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@846 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-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-02-21sgp_dd: support memory-mapped IO via mmap flag; sg_rep_zones: add --num= and ↵Douglas Gilbert
--wp options git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@842 6180dd3e-e324-4e3e-922d-17de1ae2f315
2020-02-11sg_ses: add 'fan speed factor' field (20-013r1)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@841 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-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-12-27sg_lib: add sg_get_command_str() and sg_print_command_len(); ↵Douglas Gilbert
sg_verify+sg_write_same: fix and --ff option; sg_dd+sgh_dd: add --verify support git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@837 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