aboutsummaryrefslogtreecommitdiff
path: root/src/sg_persist.c
AgeCommit message (Collapse)Author
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-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
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
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-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-06-16rescan-scsi-bus.sh: add --ignore-rev; sg_persist: add RLR_C bit to Read ↵Douglas Gilbert
capabilities; sg_pt_freebsd+win32: fix SNTL error crashes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@778 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-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-02-28sg_write_x: add --quiet option; fix sg_if_can2stdxxx problem when es=0; ↵Douglas Gilbert
other cleanups git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@757 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-05Info section added to end of ./configure; sg_persist: add --maxlen=LEN ↵Douglas Gilbert
option; sg_opcodes: report when --no-inquiry ignored git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@750 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-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-27sg_lib: add sg_decode_transportid_str(); sg_inq: update version descriptor ↵Douglas Gilbert
list to 20160420; sync asc/ascq codes with T10 20160425 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@694 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
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-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
2014-10-08sg_persist: split help into two pages; some spl4r01 workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@614 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-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-12change SG_PERSIST_O_RDONLY to SG_PERSIST_IN_RDONLY; more --readonly options; ↵Douglas Gilbert
windows work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@574 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-05-05sg_logs: add --in=FN and --filter=PARC options; sg_persist: add --readonly ↵Douglas Gilbert
option + environment variable SG_PERSIST_O_RDONLY git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@572 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-04-23sg_format: add --ip_def option to fully provision; docoDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@569 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-02-04sg_persist: add --transport-id= for SOP; sg_lib.h: add PDT_ZBC define and ↵Douglas Gilbert
pdt string git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@549 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-01-17sg_persist: add PROUT: Replace Lost Reservation; sg_decode_sense: with ↵Douglas Gilbert
--no-space ignore spaces git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@545 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-01-11sg_ses++: fix --data=- problem with large buffers, more workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@543 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-07-30sg_lib: add dStrHexErr() and dStrHexStr(); sg_xcopy work (and in ↵Douglas Gilbert
sg_cmds_extra.c) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@503 6180dd3e-e324-4e3e-922d-17de1ae2f315
2013-06-28sg_persist+sg_unmap: fix crash on option decode; sg_logs: expand for tape; ↵Douglas Gilbert
sg_xcopy+: clean git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@500 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
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-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
2012-02-23sg_inq --export, sg_sanitize --ause --fail --test=, partial spc4r34+sbc3r30 syncDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@441 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-09-03autotools horrible timestamp ordering, part twoDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@294 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-08-24sg_persist: tranport specific transportIDs, read transportIDs from file; add ↵Douglas Gilbert
Progress indication sense data descriptor git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@290 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
2009-07-22change many printf(0x%x) format strings to %#xDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@281 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-04-03sg_persist: add '--alloc-length=' optionDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@243 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-04-02Allow various comma separated list arguments to take space separatorDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@242 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-03-16sg_persist code clean up, sginfo crash fixDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@233 6180dd3e-e324-4e3e-922d-17de1ae2f315
2008-06-04remove trailing spaces from various source filesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@178 6180dd3e-e324-4e3e-922d-17de1ae2f315
2007-12-19change 'long long' to int64_t to stress only need 64 bit integers (similar ↵Douglas Gilbert
change to uint64_t) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@128 6180dd3e-e324-4e3e-922d-17de1ae2f315
2007-10-05add TPROTO_* to sg_lib.h; protocol-specific lu info VPD pageDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@111 6180dd3e-e324-4e3e-922d-17de1ae2f315
2007-09-19sg_stpg work, device_name simplification, restore sg_read_buffer to buildDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@103 6180dd3e-e324-4e3e-922d-17de1ae2f315
2007-09-10rearrange files into include, src, lib and doc directoriesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@100 6180dd3e-e324-4e3e-922d-17de1ae2f315