Update Sg3 utilities to 1.26 [PSARC/2009/029 FastTrack timeout 01/22/2009]

Mark Carlson markcarl at sac.sfbay.sun.com
Thu Jan 15 06:02:12 PST 2009


I am sponsoring this update to the previously approved sg3 utilities case
sg3 utilities 1.25 [PSARC/2008/683]. It times out 01/22/2009. 

Here are the detailed changes from v1.25 to v1.26:
Features changed:
1) add a new command, sg_sat_phy_event
2) enhanced some of the existing commands(new options added, code refinement)
3) enriched existing manpages

Major changes for ARC case documents:
1) add a new interface(command sg_sat_phy_event)
2) modify an existing interface(private library and its symbolic link) name
      libsgutils.so -> libsgutils2.so
      libsgutils.so.1 -> libsgutils2.so.2
      libsgutils.so.1.0.0 -> libsgutils2.so.2.0.0
3) add a new interface(manpage of sg_sat_phy_event)

The updated documents and a diff file are in the case directory

-- mark

Template Version: @(#)sac_nextcase %I% %G% SMI
This information is Copyright 2009 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 Update Sg3 utilities to 1.26
    1.2. Name of Document Author/Supplier:
	 Author:  Xiao Li
    1.3  Date of This Document:
	15 January, 2009

2. Project Summary
   2.1. Project Description

        This project updates the Sg3 utilities from 1.25 to 1.26.
    
4. Technical Description

	The sg3_utils package contains utilities that send SCSI commands to
	devices. As well as devices on transports traditionally associated
	with SCSI (e.g. Fibre Channel (FCP), Serial Attached SCSI (SAS) and
	the SCSI Parallel Interface(SPI)) and many other devices use SCSI
	command sets. ATAPI cd/dvd drives and SATA disks that connect via a
	translation layer or a bridge device are examples of devices that
	use SCSI command sets.
	There are about 33 command line utilities inside this package.
	Command name	Notes
	============	===================================================
	sg_get_config	fetch features and profiles of a cd/dvd drive and/or
			its current media
	sg_ident	default is to report (fetch) the device identifier.
			With the '--set' option a new identifier is sent to
			the device.
	sg_inq		fetch standard response, VPD pages or version
			descriptors. Also can perform IDENTIFY (PACKET)
			DEVICE ATA command. VPD page decoding also performed
			by sg_vpd and sdparm.
	sg_logs		fetch log sense pages, decode standard and some vendor
			pages
	sg_luns		fetch luns reported by a device (lun 0 or "well known
			lu")
	sg_modes	fetch mode pages (output mainly in hex, to decode
			output use sdparm)
	sg_opcodes	fetch supported SCSI commands or supported task
			management functions
	sg_persist	control persistent reservations and report reservation
			status
	sg_prevent	control media removal, mainly for those SCSI devices
			which have removable media (e.g. CD/DVD and tape drives)
	sg_raw		send user supplied cdb
	sg_rdac		display or modify RDAC redundant controller mode page
	sg_read_buffer	read descriptors or data
	sg_read_long	read data from given lba which includes the block and
			ECC data.
	sg_readcap	fetch the number of blocks and the individual block
			size for disks and CD/DVD media
	sg_reassign	reassign a lba from one sector on a disk (typically
			damaged) to a new (spare) sector. User data copied if
			it is recoverable.
	sg_requests	fetch sense data from the given device. Modern uses
			include getting a progress indication (e.g. during a
			format) or finding the power condition state.
	sg_rmsn		Relatively new command added to SPC-3. Format of
			response is vendor specific so this utility outputs
			it in hex (default) or binary.
	sg_rtpg		Specialized for multi-ported SCSI devices where one
			port (or a group of them) is preferred for IO over
			another (or others).
	sg_safte	fetch information from a SAF-TE processor.
	sg_sat_identify	Send ATA IDENTIFY DEVICE or IDENTIFY PACKET DEVICE
			commands via the SAT ATA PASS-THROUGH (16 or 12) SCSI
			command.
	sg_sat_phy_event	Sends an ATA READ LOG EXT command via a SAT to
	                fetch log page 11h which contains SATA phy event counters.
	sg_sat_set_features  	Sends ATA SET FEATURES command via SAT.
	sg_senddiag	Issues either a default self test or a short/extended
			foreground/background self test. With no arguments it
			uses RECEIVE DIAGNOSTIC RESULTS to list all supported
			diagnostic pages.
	sg_ses		Fetches status diagnostic pages from, and sends some
			control pages to, a SCSI Enclosure Services (SES)
			device.
	sg_start	Controls the power condition state of a SCSI device.
			Primary use is to spin up and down SCSI disks. Can
			also load and eject removable media.
	sg_stpg		Specialized for multi-ported SCSI devices where one
			port (or a group of them) is preferred for IO over
			another (or others).
	sg_sync		Causes disk caches to be flushed to media.
	sg_turs		Issue one or more Test Unit Ready commands. Can be
			used to time SCSI command overhead.
	sg_verify	reads indicated blocks on a SCSI disks, stops on the
			first error found. Does not yield any data. Useful
			for media scans.
	sg_vpd		Decodes standard and some vendor Vital Product Data
			(VPD) pages.
	sg_wr_mode	writes mode pages supplied in ASCII hex (e.g. from
			"sg_modes -r") to the  SCSI device. See sdparm for
			another method of setting mode page parameters.
	sg_write_buffer	write data; can be used to download firmware.
	sg_write_long	writes to a lba, data which includes the block and
			ECC data. Suitable data typically fetched by prior
			sg_read_long utility.
5. Interfaces

    Exported interface			Classification	Interface type
    ===============================	==============	==============
    SUNWsg3utilsu			Uncommitted	Package	name
    SUNWsg3utilsr			Uncommitted	Package	name
    /usr/sbin/sg_get_config		Uncommitted	Command
    /usr/sbin/sg_ident			Uncommitted	Command
    /usr/sbin/sg_inq			Uncommitted	Command
    /usr/sbin/sg_logs			Uncommitted	Command
    /usr/sbin/sg_luns			Uncommitted	Command
    /usr/sbin/sg_modes			Uncommitted	Command
    /usr/sbin/sg_opcodes		Uncommitted	Command
    /usr/sbin/sg_persist		Uncommitted	Command
    /usr/sbin/sg_prevent		Uncommitted	Command
    /usr/sbin/sg_raw			Uncommitted	Command
    /usr/sbin/sg_rdac			Uncommitted	Command
    /usr/sbin/sg_read_buffer		Uncommitted	Command
    /usr/sbin/sg_read_long		Uncommitted	Command
    /usr/sbin/sg_readcap		Uncommitted	Command
    /usr/sbin/sg_reassign		Uncommitted	Command
    /usr/sbin/sg_requests		Uncommitted	Command
    /usr/sbin/sg_rmsn			Uncommitted	Command
    /usr/sbin/sg_rtpg			Uncommitted	Command
    /usr/sbin/sg_safte			Uncommitted	Command
    /usr/sbin/sg_sat_identify		Uncommitted	Command
    /usr/sbin/sg_sat_phy_event		Uncommitted	Command
    /usr/sbin/sg_sat_set_features	Uncommitted	Command
    /usr/sbin/sg_senddiag		Uncommitted	Command
    /usr/sbin/sg_ses			Uncommitted	Command
    /usr/sbin/sg_start			Uncommitted	Command
    /usr/sbin/sg_stpg			Uncommitted	Command
    /usr/sbin/sg_sync			Uncommitted	Command
    /usr/sbin/sg_turs			Uncommitted	Command
    /usr/sbin/sg_verify			Uncommitted	Command
    /usr/sbin/sg_vpd			Uncommitted	Command
    /usr/sbin/sg_wr_mode			Uncommitted	Command
    /usr/sbin/sg_write_buffer		Uncommitted	Command
    /usr/sbin/sg_write_long		Uncommitted	Command
    /usr/lib/libsgutils2.so		Private		Symbolic link
    /usr/lib/libsgutils2.so.2		Private		Symbolic link
    /usr/lib/libsgutils2.so.2.0.0	Private		Shared library file
    /usr/share/man/man1m/sg_read_long.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_safte.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_senddiag.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_wr_mode.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_stpg.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_persist.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_ses.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_opcodes.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_get_config.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_read_buffer.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_luns.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_requests.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_prevent.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_rdac.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_rtpg.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_sat_identify.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_sat_phy_event.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_start.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_verify.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_modes.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_readcap.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_sat_set_features.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_rmsn.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg3_utils.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_ident.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_vpd.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_inq.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_raw.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_turs.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_sync.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_logs.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_format.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_reassign.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_write_long.1m	Uncommitted	Manpage
    /usr/share/man/man1m/sg_write_buffer.1m	Uncommitted	Manpage
 
  The following additional installed files are not interface.

         Additional document
         -------------------
	 N/A
	 
6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		SFW
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open




More information about the opensolaris-arc mailing list