public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Is there any tool can perform a READ Capacity command?
@ 2007-08-02 14:30 jidong xiao
  2007-08-02 14:43 ` Martin K. Petersen
  0 siblings, 1 reply; 4+ messages in thread
From: jidong xiao @ 2007-08-02 14:30 UTC (permalink / raw)
  To: linux-scsi

I know sg_modes can help to perform a SCSI MODE SENSE command, is
there any tool/command that can perform a READ Capacity command?

Thanks
Jason Xiao

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any tool can perform a READ Capacity command?
  2007-08-02 14:30 Is there any tool can perform a READ Capacity command? jidong xiao
@ 2007-08-02 14:43 ` Martin K. Petersen
  2007-08-02 16:40   ` Douglas Gilbert
  0 siblings, 1 reply; 4+ messages in thread
From: Martin K. Petersen @ 2007-08-02 14:43 UTC (permalink / raw)
  To: jidong xiao; +Cc: linux-scsi

>>>>> "jidong" == jidong xiao <jidong.xiao@gmail.com> writes:

jidong> I know sg_modes can help to perform a SCSI MODE SENSE command,
jidong> is there any tool/command that can perform a READ Capacity
jidong> command?

sg_readcap

-- 
Martin K. Petersen	Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any tool can perform a READ Capacity command?
  2007-08-02 14:43 ` Martin K. Petersen
@ 2007-08-02 16:40   ` Douglas Gilbert
  2007-08-03  8:01     ` jidong xiao
  0 siblings, 1 reply; 4+ messages in thread
From: Douglas Gilbert @ 2007-08-02 16:40 UTC (permalink / raw)
  To: Martin K. Petersen; +Cc: jidong xiao, linux-scsi

Martin K. Petersen wrote:
>>>>>> "jidong" == jidong xiao <jidong.xiao@gmail.com> writes:
> 
> jidong> I know sg_modes can help to perform a SCSI MODE SENSE command,
> jidong> is there any tool/command that can perform a READ Capacity
> jidong> command?
> 
> sg_readcap

In the sg3_utils package there is a COVERAGE file which
lists the mapping between SCSI commands and the sg3_utils
utilities that send them. [Amongst other things it is useful
when I forget.]


sg3_utils version 1.25 is work in progress; here is the
ChangeLog to date:

Changelog for sg3_utils-1.25 [20070728]
  - sg_sat_set_features: new utility (actually copied from examples
    directory); renamed examples version: sg__sat_set_features
  - sg_dd: add oflag=sparse to step over bs*bpt number of zeros;
    - with oflag=sparse, write last bs*bpt segment at end or after
      error so file length of OFILE is appropriate
    - when coe>1 then SCSI READ LONG logic remember extended block
      length of first encountered error
  - sg_dd, sgm_dd, sgp_dd: allow iflag=null and oflag=null both of
    which do nothing (placeholders)
  - sg_ses: sync with ses2r17 the r18
  - sg_vpd: add block device characteristics VPD page
  - sg_logs: update background scan results log page, sbc3r11
  - place source in subversion repository
  - convert build logic to use autotools (i.e. './configure ; make')
    - rename this file from CHANGELOG to ChangeLog
    - note: only utilities in main directory built by autotools
      infrastructure; subdirectories still use hand-crafted Makefiles


Doug Gilbert


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any tool can perform a READ Capacity command?
  2007-08-02 16:40   ` Douglas Gilbert
@ 2007-08-03  8:01     ` jidong xiao
  0 siblings, 0 replies; 4+ messages in thread
From: jidong xiao @ 2007-08-03  8:01 UTC (permalink / raw)
  To: dougg; +Cc: Martin K. Petersen, linux-scsi

That's great, thanks.

Regards
Jason

On 8/3/07, Douglas Gilbert <dougg@torque.net> wrote:
> Martin K. Petersen wrote:
> >>>>>> "jidong" == jidong xiao <jidong.xiao@gmail.com> writes:
> >
> > jidong> I know sg_modes can help to perform a SCSI MODE SENSE command,
> > jidong> is there any tool/command that can perform a READ Capacity
> > jidong> command?
> >
> > sg_readcap
>
> In the sg3_utils package there is a COVERAGE file which
> lists the mapping between SCSI commands and the sg3_utils
> utilities that send them. [Amongst other things it is useful
> when I forget.]
>
>
> sg3_utils version 1.25 is work in progress; here is the
> ChangeLog to date:
>
> Changelog for sg3_utils-1.25 [20070728]
>  - sg_sat_set_features: new utility (actually copied from examples
>    directory); renamed examples version: sg__sat_set_features
>  - sg_dd: add oflag=sparse to step over bs*bpt number of zeros;
>    - with oflag=sparse, write last bs*bpt segment at end or after
>      error so file length of OFILE is appropriate
>    - when coe>1 then SCSI READ LONG logic remember extended block
>      length of first encountered error
>  - sg_dd, sgm_dd, sgp_dd: allow iflag=null and oflag=null both of
>    which do nothing (placeholders)
>  - sg_ses: sync with ses2r17 the r18
>  - sg_vpd: add block device characteristics VPD page
>  - sg_logs: update background scan results log page, sbc3r11
>  - place source in subversion repository
>  - convert build logic to use autotools (i.e. './configure ; make')
>    - rename this file from CHANGELOG to ChangeLog
>    - note: only utilities in main directory built by autotools
>      infrastructure; subdirectories still use hand-crafted Makefiles
>
>
> Doug Gilbert
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-03  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 14:30 Is there any tool can perform a READ Capacity command? jidong xiao
2007-08-02 14:43 ` Martin K. Petersen
2007-08-02 16:40   ` Douglas Gilbert
2007-08-03  8:01     ` jidong xiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox