aboutsummaryrefslogtreecommitdiff
path: root/doc/sg_format.8
AgeCommit message (Collapse)Author
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-02-11sg_format: allow disk formats on ZBC (zoned) disksDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@937 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-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
2019-01-16more sg_tst_bidi.c workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@807 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-12-13sg_format: add --dcrt used twice (FOV=1 DCRT=0); sg_pt_linux: uses sg v4 ↵Douglas Gilbert
interface if sg driver >= 4.0.0 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@798 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-08-31sg_format: FFMT tweaks: default CMPLST to false, shorten pollDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@788 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-08-13apply most patches from sg3_utils-1.42-6.fc29.src*; sg_get_lba_status fixes; ↵Douglas Gilbert
doco git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@786 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-07-25sg_format: when changing block size allow for Mode Select rejecting SP=1 ↵Douglas Gilbert
(Save Page): repeat with SP=0; gcc-8 warning cleanups git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@785 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-06-03sg_decode sense: add --err=ES; sg_dd, sgp_dd, sgm_dd: add --dry-run and ↵Douglas Gilbert
--verbose options; introduce SG3_UTILS_DSENSE environment variable; sg_lib: add sg_nvme_desc2sense(), sg_build_sense_buffer(), and pr2ws() git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@777 6180dd3e-e324-4e3e-922d-17de1ae2f315
2018-05-20sg_sanitize: add --dry-run option; sg_format: extend --wait timeout to 40 ↵Douglas Gilbert
hours for disk sizes > 4 TB and 80 hours if > 8 TB git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@773 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-01-13sg_ses_microcode: add --dry-run and --ealsd; sg_write_buffer: add --dry-runDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@744 6180dd3e-e324-4e3e-922d-17de1ae2f315
2017-12-29sg_ses: further NVMe support work; decode array status dpage (obsolete); ↵Douglas Gilbert
build: add SG_LIB_ANDROID git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@738 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-09-14sg_format: add --quick option; add write scattered (16+32) cdb namesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@713 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-02-28sg_sanitize+sg_format: add --timeout=SEC option; sg_reassign+sg_write_same: ↵Douglas Gilbert
fix ULONG_MAX problem git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@680 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-02-09sg_inq: '--export': new entries for UUID descriptor; sg_format: add support ↵Douglas Gilbert
for FORMAT MEDIUM git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@661 6180dd3e-e324-4e3e-922d-17de1ae2f315
2016-01-27sg_logs: LPS misalignment lpage; sg_format: add ffmt option; sg_lib: big ↵Douglas Gilbert
sense reporting rework git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@657 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-19sg_lib_data: sync asc/ascq codes with T10 20140516, sync operation code with ↵Douglas Gilbert
T10 20140515; sg_inq: sync version descriptors dated 20105176; sg_vpd: add --vendor=VP option git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@579 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-04-28another ... dStrHex(Err): fix output truncation errorDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@571 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-04-26sg_opcodes: add --mask option; sg_rbuf: add --echo option; sg_lib: fix ↵Douglas Gilbert
output truncation error git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@570 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-03-31sg_lib_data: sync asc/ascq codes with T10 dated 20140320Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@562 6180dd3e-e324-4e3e-922d-17de1ae2f315
2014-01-28sg_unmap cleanup; manpages: add rescan-scsi-bus.sh.8 and other cleanupsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@548 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
2012-12-22another rescan-scsi-bus.sh patch; man page hyphensDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@472 6180dd3e-e324-4e3e-922d-17de1ae2f315
2012-02-10doco: improve sg_format.8 examples; other cleanupsDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@438 6180dd3e-e324-4e3e-922d-17de1ae2f315
2012-01-19sg_get_lba_status: adjust Parameter Data Length response field calculation ↵Douglas Gilbert
per sbc3r25.pdf git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@435 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-11-05sg_format: add --poll=PT; > 2 TB additions; DIF stuffDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@423 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-08-28spc4r32 sync; sg_write_buffer --specific optionDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@412 6180dd3e-e324-4e3e-922d-17de1ae2f315
2011-06-22add sg_sanitize, initial cutDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@407 6180dd3e-e324-4e3e-922d-17de1ae2f315
2010-09-07sg3_utils man page: add sections on OS device namesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@350 6180dd3e-e324-4e3e-922d-17de1ae2f315
2010-04-24bump to 1.30, some spc4r24 updates, sg_read_long --readonly option; spellingDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@338 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-04-01sg_write_same tweaks and man page cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@240 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-03-27add protection type format exampleDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@237 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-03-01sg_format: improve man pageDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@223 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-02-28more spc4r18 sync, start sbc3r18 sync (sg_format and sg_readcap); change ↵Douglas Gilbert
interface of sg_ll_format_unit() removing rto_req argument git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@221 6180dd3e-e324-4e3e-922d-17de1ae2f315
2009-02-10minor docoDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@213 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-10-16vendor page order in sg_vpd and escape dashes in man pagesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@114 6180dd3e-e324-4e3e-922d-17de1ae2f315
2007-10-13add more RDAC vendor pages to sg_vpdDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@112 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