Skip to content

Commit

Permalink
rename sg_write_atomic to sg_write_x; sg_inq: decode NVMe identify fo…
Browse files Browse the repository at this point in the history
…r Linux+FreeBSD

git-svn-id: svn://localhost/trunk@731 6180dd3e-e324-4e3e-922d-17de1ae2f315
  • Loading branch information
doug-gilbert authored and hreinecke committed Jan 2, 2018
1 parent 2f6aabe commit d44a4b8
Show file tree
Hide file tree
Showing 46 changed files with 1,994 additions and 335 deletions.
10 changes: 5 additions & 5 deletions COVERAGE
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ VERIFY(16) sg_verify, ++
WRITE(6) sg_dd, sgm_dd, sgp_dd
WRITE(10) sg_dd, sgm_dd, sgp_dd
WRITE(12) sg_dd, sgm_dd, sgp_dd
WRITE(16) sg_dd, sgm_dd, sgp_dd, sg_write_atomic
WRITE(32) sg_write_atomic
WRITE(16) sg_dd, sgm_dd, sgp_dd, sg_write_x
WRITE(32) sg_write_x
WRITE AND VERIFY(10) sg_write_verify
WRITE AND VERIFY(16) sg_write_verify
WRITE ATOMIC(16) ddpt, sg_write_atomic
WRITE ATOMIC(32) sg_write_atomic
WRITE ATOMIC(16) ddpt, sg_write_x
WRITE ATOMIC(32) sg_write_x
WRITE BUFFER sg_test_rwbuf, sg_write_buffer, ++
WRITE LONG(10) sg_write_long, ++
WRITE LONG(16) sg_write_long, ++
Expand Down Expand Up @@ -137,4 +137,4 @@ THIRD PARTY COPY IN (0x83).


Douglas Gilbert
21st September 2017
15th November 2017
16 changes: 11 additions & 5 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ Each utility has its own version number, date of last change and
some description at the top of its ".c" file. All utilities in the main
directory have their own "man" pages. There is also a sg3_utils man page.

Changelog for sg3_utils-1.43 [20171104] [svn: r730]
Changelog for sg3_utils-1.43 [20171115] [svn: r731]
- sg_bg_ctl: new Background control command (sbc4r08)
- sg_write_atomic: new 16 and 32 byte cdbs (sbc4r04)
- also can issue plain WRITE(16 or 32)
- sg_write_x: where X can be normal, atomic,
scattered, or stream writes with 16 or 32 byte
cdbs (sbc4r04 for atomic, sbc4r11 for scattered)
- sg_senddiag: add --timeout=SEC option
- sg_sanitize: add --timeout=SEC option
- sg_format: add --timeout=SEC option
Expand Down Expand Up @@ -41,6 +42,7 @@ Changelog for sg3_utils-1.43 [20171104] [svn: r730]
log page (from H. Reinecke, Suse)
- sg_inq: fix potential unbounded loop in --export
- update version descriptor list to 20170114
- decode NVMe Identify controller/nsid
- sg_inq+sg_vpd: update Extended inquiry data vpd
page (spc5r09)
- block limits and block limit extension VPD pages:
Expand Down Expand Up @@ -88,11 +90,16 @@ Changelog for sg3_utils-1.43 [20171104] [svn: r730]
- add sg_get_sfs_name() for spc5r11 (Feature sets)
- add sg_decode_transportid_str()
- add sg_msense_calc_length()
- add sg_all_zeros(), sg_all_ffs()
- implement 'format' argument in dStrHexStr()
- add read buffer(16) command mode names
- add Microcode activation sense descriptor spc5r10
- add SG_LIB_UNBOUNDED_32BIT (_16BIT and _64BIT)
defines to help with decoding corner cases
- sg_pt: add construct_scsi_pt_obj_with_fd()
- add pt_device_is_nvme(), get_pt_nvme_nsid()
- add check_pt_file_handle()
- add get_pt_file_handle(), get_pt_file_handle()
- sg_lib_data: sync asc/ascq codes with T10 20170114
- add write scattered (16+32) cdb names sbc4r11
- sg_cmds_extra: expand sg_ll_ata_pt() to send new
Expand All @@ -107,9 +114,8 @@ Changelog for sg3_utils-1.43 [20171104] [svn: r730]
- https://github.com/hreinecke/sg3_utils
branch sles15 synced 20170914
- move some testing utilities out of the
'examples' and 'utils' directory into the new
'examples' and 'utils' directories into the new
'testing' directory
directory into the 'testing' directory
- gcc 7.2 cleanups (sysmacros.h etc)
- clang --analyze static checker clean ups
- shellcheck cleanup on scripts
Expand Down
10 changes: 5 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ subdirectory of the sg3_utils package:
sg_rtpg, sg_safte, sg_sanitize, sg_sat_identify, sg_sat_phy_event,
sg_sat_read_gplog, sg_sat_set_features, sg_scan, sg_senddiag, sg_ses,
sg_ses_microcode, sg_start, sg_stpg, sg_sync, sg_test_rwbuff,
sg_timestamp, sg_turs, sg_unmap, sg_verify, sg_vpd, sg_write_atomic,
sg_write_buffer, sg_write_long, sg_write_same, sg_write_verify,
sg_timestamp, sg_turs, sg_unmap, sg_verify, sg_vpd, sg_write_buffer,
sg_write_long, sg_write_same, sg_write_verify, sg_write_x,
sg_wr_mode, sg_xcopy, sg_zone

Each of the above utilities depends on header files found in the 'include'
Expand Down Expand Up @@ -403,8 +403,8 @@ The more recent utilities that use "getopt_long" only are:
sg_rmsn, sg_rtpg, sg_safte, sg_sanitize, sg_sat_identify,
sg_sat_phy_event, sg_sat_read_gplog, sg_sat_set_features, sg_scan(w),
sg_ses, sg_ses_microcode, sg_stpg, sg_sync, sg_test_rwbuf, sg_timestamp,
sg_unmap, sg_verify, sg_vpd, sg_write_atomic, sg_write_buffer,
sg_write_long, sg_write_same, sg_write_verify, sg_wr_mode, sg_zone
sg_unmap, sg_verify, sg_vpd, sg_write_buffer, sg_write_long,
sg_write_same, sg_write_verify, sg_write_x, sg_wr_mode, sg_zone


Dangerous code
Expand Down Expand Up @@ -476,4 +476,4 @@ See http://sg.danny.cz/sg/tools.html


Douglas Gilbert
4th November 2017
15th November 2017
6 changes: 4 additions & 2 deletions README.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Here is a list of utilities that have been ported:
sg_readcap
sg_reassign
sg_referrals
sg_rep_zones
sg_requests
sg_rmsn
sg_rtpg
Expand All @@ -53,11 +54,12 @@ Here is a list of utilities that have been ported:
sg_unmap
sg_vpd
sg_wr_mode
sg_write_atomic
sg_write_buffer
sg_write_long
sg_write_same
sg_write_verify
sg_write_x
sg_zone

Most utility names are indicative of the main SCSI command
that they execute. Some utilities are slightly higher level, for
Expand Down Expand Up @@ -138,4 +140,4 @@ utilities.


Douglas Gilbert
21st September 2017
15th November 2017
6 changes: 4 additions & 2 deletions README.solaris
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Here is a list of utilities that have been ported:
sg_readcap
sg_reassign
sg_referrals
sg_rep_zones
sg_requests
sg_rmsn
sg_rtpg
Expand All @@ -70,11 +71,12 @@ Here is a list of utilities that have been ported:
sg_verify
sg_vpd
sg_wr_mode
sg_write_atomic
sg_write_buffer
sg_write_long
sg_write_same
sg_write_verify
sg_write_x
sg_zone

Most utility names are indicative of the main SCSI command
that they execute. Some utilities are slightly higher level, for
Expand Down Expand Up @@ -159,4 +161,4 @@ disks to accept SCSI commands including the SCSI ATA PASS THROUGH commands.


Douglas Gilbert
21st September 2017
15th November 2017
2 changes: 1 addition & 1 deletion README.win32
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ Here is a list of utilities that have been ported:
sg_verify
sg_vpd
sg_wr_mode
sg_write_atomic
sg_write_buffer
sg_write_long
sg_write_same
sg_write_verify
sg_write_x
sg_zone

Most utility names are indicative of the main SCSI command that they execute.
Expand Down
6 changes: 6 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
/* Define to 1 if you have the <linux/kdev_t.h> header file. */
#undef HAVE_LINUX_KDEV_T_H

/* Define to 1 if you have the <linux/nvme_ioctl.h> header file. */
#undef HAVE_LINUX_NVME_IOCTL_H

/* Define to 1 if you have the <linux/types.h> header file. */
#undef HAVE_LINUX_TYPES_H

Expand All @@ -24,6 +27,9 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Found NVMe */
#undef HAVE_NVME

/* Define to 1 if you have the `posix_fadvise' function. */
#undef HAVE_POSIX_FADVISE

Expand Down
Loading

0 comments on commit d44a4b8

Please sign in to comment.