sg3_utils Changelog

New in version 1.37

October 18th, 2013
  • sg_compare_and_write: fix wrprotect setting
  • add --quiet option to suppress miscompare report
  • merge features from another implementation
  • sg_inq: fix referrals VPD page
  • dev_id VPD: T10 vendor id designator clean up
  • sg_logs: improve for tape drives, general cleanup
  • sg_persist: fix core dump on -Q option
  • sg_unmap: fix core dump on -g option
  • sg_vpd: dev_id VPD: T10 vendor id designator clean up
  • cleanup up dev_id NAA-3: locally assigned
  • sg_ses: add --nickname and --nickid options
  • eiioe added to additional element status page (ses3r6)
  • multiple --filter options to prune output
  • sg_verify: improve miscompare handling
  • rename --btychk=ndo option to --ndo=ndo (hide former)
  • add --quiet option
  • sg_xcopy: allow sg and bsg devices
  • fix for bpt going negative
  • limit each XCOPY(LID1) command to 65535 blocks
  • fix for seek in multi-segment copies
  • sg_sanitize: skip 15 second safety delay with --fail
  • sg_libs: extended copy opcode renamed (spc4r34)
  • sg_ll_receive_copy_results(): expand for all sa_s
  • add sg_get_sense_key()
  • add sg_ll_3party_copy_out()
  • add dStrHexErr(): ascii hex to stderr
  • add dStrHexStr(): ascii hex to string
  • add SG_LIB_CAT_MISCOMPARE to categories
  • clean header files
  • sg_pt_freebsd: sanity check on sense_resid; fix leaks
  • scripts/rescan-scsi-bus.sh KG's v1.57 + HR patch
  • improve wlun handling, detect updated and resized devices, better multipath support
  • Makefile.am cleanup
  • examples: add sg_tst_excl and sg_tst_excl2

New in version 1.36 (June 4th, 2013)

  • sg_vpd: Protocol-specific port information VPD page for SAS SSP, persistent connection (spl3r2), power disable (spl3r3) - block device characteristics: add FUAB bit
  • sg_xcopy: handle more descriptor types; handle zero maximum segment length; allow list IDs to be disabled; improve skip/seek handling; allow xcopy on destination
  • sg_reset: and --no-esc option to stop reset escalation - clean up cli, add long option names
  • sg_luns: add --test=ALUN option for decoding LUNs - decoded luns output in decimal or hex (if -HH given) - add '--linux' option to show Linux LUN after T10 representation, can map one to the other
  • sg_inq: add --vendor option to show standard inquiry's vendor specific fields in ASCII - take resid into account with response output
  • sg_sync: add --16 (for 16 byte command) and --timeout=
  • sg_logs: add data compression page (ssc4)
  • sg_sat_set_features: increase --lba from 1 to 4 bytes
  • sg_write_same: add --ndob option (sbc3r35d)
  • sg_map: mark as deprecated
  • sginfo: mark as deprecated, especially -l (list)
  • sg_lib: improve snprintf handling
  • sg_lib_data: sync asc/ascq codes with T10 20130117
  • sg_cmds (lib): if noisy given, give more UA info
  • make code more C++ friendly

New in version 1.35 (January 19th, 2013)

  • sg_compare_and_write: new utility
  • sg_inq+sg_vpd: block device characteristics VPD page: add product_type, WABEREQ, WACEREQ and VBULS fields
  • sg_inq: more --export option changes for udev
  • sg_vpd: add more rdac vendor specific vpd pages
  • sg_verify: add --ebytchk option for sbc3r34 changes
  • sg_stpg: --offline option: fix 'Invalid state 0xe'
  • sg_ses: Door Lock element changed to Door element and abbreviation changed from 'dl' to 'do' (ses3r05)
  • archive/rescan-scsi-bus.sh: upgrade to version 1.53hr
  • move rescan-scsi-bus.sh to scripts directory
  • sync to sbc3r34 - sg_lib: sg_ll_verify10+16 expand BYTCHK to 2 bit field
  • sg_pt_win32, sg_scan(win32): changes for cygwin 1.7.17
  • clean up man page summary lines

New in version 1.34 (October 15th, 2012)

  • sg_xcopy: new dd like utility for extended copy command
  • sg_copy_results: new utility for receive copy results
  • sg_verify: add 16 byte cdb, bytchk (data-out buffer) and group number support
  • sync to spc4r36 and sbc3r32
  • sg_inq: add --export so sg_inq can replace udev's scsi_id - decode old EMC Symmetrix abuse of VPD page 0x83
  • sg_vpd: decode old EMC Symmetrix abuse of VPD page 0x83
  • sg_ses: increase max dpage response size to 64 KB - allow ident,locate on enclosure controller - more sanity for additional element status descriptor
  • sg_sanitize: add --ause, --fail and --test=
  • sg_luns: add long extended flat space addressing format
  • sg_logs: add ATA pass-through results lpage (SAT-2)
  • sg_rtpg: add --extended option
  • sg_senddiag: list rebuild assist diag page name
  • sg_pt_linux: expand DID_ (host_byte) codes - cope with a transport error plus sense data - prefer major() over MAJOR() macro
  • sg_lib: fix sg_get_command_name() service actions - report sdat_ovfl bit (if set) in sense data - decode extended_copy and receive_copy service actions - decode read_buffer and write_buffer modes - decode ATA PT fixed format sense (SAT-2)
  • sg_cmds_extra: add sg_ll_report_tgt_prt_grp2()
  • ./configure options: - change --enable-no-linux-bsg to --disable-linuxbsg - add --disable-scsistrings to reduce utility sizes

New in version 1.32 (August 4th, 2011)

  • A sg_sanitize utility was added.
  • A major rework of the sg_ses utility was undertaken.
  • SCSI (t10.org) draft standard changes were incorporated.

New in version 1.31 (February 17th, 2011)

  • A sg_decode_sense utility was added along with additional decode logic for new SCSI sense descriptors.
  • SCSI draft standard changes were incorporated.

New in version 1.30 (November 15th, 2010)

  • This version tracks changes in the SCSI draft standards from www.t10.org since the last release of this package in April 2010.
  • It adds the sg_referrals utility for the SCSI REPORT REFERRALS command.

New in version 1.28 (October 5th, 2009)

  • Support for thin provisioning was added: sg_get_lba_status and sg_unmap plus associated log, mode, and VPD pages.
  • The SCSI draft standards up until September 2009 are tracked.

New in version 1.27 (April 12th, 2009)

  • - sg_write_same: new utility: 10, 16 and 32 byte cdb variants
  • - sg_inq: sync version descriptors with spc4r18
  • - add power condition VPD page
  • - expand block limits VPD page (sbc3r18)
  • - sg_vpd: add power condition VPD page
  • - expand block limits VPD page (sbc3r18)
  • - sg_map26: fix for lk 2.6.26 when CONFIG_SYSFS_DEPRECATED_V2
  • is not defined
  • - output cdb when verbose option given
  • - correct tape minors >= 32
  • - sg_dd: flock flag (does LOCK_EX|LOCK_NB)
  • - switch open on input for sg device nodes: first open
  • read-write and if that fails try opening read-only
  • - experiment with of2=OFILE2; add conv=sparse
  • - use posix_fadvise() to defeat caching of normal+block files
  • when new 'nocache' flag given
  • - sg_dd copied to own package called ddpt
  • - sg_dd, sgm_dd, sgp_dd: accept 'count=-1' for calculate count,
  • accept '-V' for version string
  • - sg_get_config: add OSSC feature [mmc6r02]
  • - sg_modes: add ATA power condition mode page
  • - sg_logs: protocol specific (SAS) lpage sync to sas2r15
  • - power condition transitions lpage (added in spc4r18)
  • - extra parameters for start-stop cycle counter lpage
  • - sg_format: add '--fmtpinfo=' and '--pie=' options (sbc3r18)
  • - sg_readcap: more protection + thin provisioning (sbc3r18)
  • - add a '--16' option for 16 byte cdb version
  • - sg_persist: code clean up
  • - allow '--transport-id=' argument to use space as separator
  • - add '--alloc-length=' argument
  • - sg_scan: (win32) new format, scsi adapter scan optional
  • - sginfo: fix crash when 1024 sg device nodes (or more)
  • - sg_ses: allow '--data=' argument to use space as separator
  • - sg_senddiag: allow '--raw=' argument to use space as separator
  • - sg_reassign: allow '--address=' argument to use space as
  • separator
  • - sg_wr_mode: allow '--contents=' and '--mask=' arguments to
  • use space as separator
  • - sg3_utils.spec: correction to configure call
  • - sg_pt: add scsi_pt_open_device_flags() call
  • - add scsi_pt_version() and clear_scsi_pt_obj() calls
  • - clear os_err at start of do_scsi_pt()
  • - add linux bsg support via runtime detection
  • - sg_cmds: add sg_cmds_open_device_flags()
  • - sg_cmds_extra: sg_ll_format_unit: remove rto_req argument,
  • the expanded fmtpinfo argument subsumes it.
  • - clearer split between Linux and Windows only code and doc
  • - automake tools: change to what Ubuntu 8.10 provides
  • - Ubuntu 8.10 libtool problems -> Debian 4.0