From: folkert@vanheusden.com
To: Douglas Gilbert <dougg@torque.net>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [ANNOUNCE] sdparm 0.90
Date: Mon, 18 Apr 2005 21:52:47 +0200 [thread overview]
Message-ID: <20050418195245.GV30729@vanheusden.com> (raw)
In-Reply-To: <4263B56B.2010905@torque.net>
[-- Attachment #1: Type: text/plain, Size: 3439 bytes --]
oh wait, 2.6 yes?
then forget my bugreport (running 2.4.26-NANO)
On Mon, Apr 18, 2005 at 11:26:03PM +1000, Douglas Gilbert wrote:
> sdparm is a new command line utility designed to get and set
> SCSI disk parameters (cf hdparm for ATA disks). More generally
> it gets and sets mode page information on SCSI devices or devices
> that use a SCSI command set (e.g. CD/DVD drives (any transport)
> and SCSI tape drives).
>
> The elements within mode pages are addressed via acronyms
> (e.g. "WCE" for "write cache enable" in the caching mode
> page). There is also numeric addressing of the form:
> <start_byte>:<start_bit>:<num_bits>
> This symbolic or numeric addressing should be more
> convenient for changing parameters than the techniques used
> by scsiinfo, sginfo and sg_wr_mode.
>
> A GUI wrapping sdparm would be a useful extension.
> It could show the mode page as found in the standard or
> the vendor's product manual with attributes such as
> "changeable" represented by colour or shading.
>
> I hope to add VPD pages in the future. sdparm shares some
> code with sg3_utils but is currently independent; they may
> share a library (libsgutils) in the future.
>
> A tarball, rpms and a "deb" can be found on
> http://www.torque.net/sg .
> Currently, the most complete documentation is in the
> man page.
>
>
> Examples (taken from the man page):
> To list the common (mode) parameters of a disk:
>
> sdparm /dev/sda
>
> To see all parameters for the caching control mode page:
>
> sdparm --page=ca /dev/sda
>
> To get the WCE values (current changeable default and
> saved) in hex:
>
> sdparm -g WCE -H /dev/sda
> 0x01 0x00 0x01 0x01
>
> To get the WCE current value in hex:
>
> sdparm -g WCE=1 -H /dev/sda
> 0x01
>
> To set the "write cache enable" bit in the current page:
>
> sdparm --set=WCE /dev/sda
>
> To set the "write cache enable" bit in the current and
> saved page:
>
> sdparm --set=WCE --save /dev/sda
>
> To set the "write cache enable" and clear "read cache
> disable":
>
> sdparm --set=WCE --clear=RCD --save /dev/sda
>
> The previous example can also by written as:
>
> sdparm -s WCE=1,RCD=0 -S /dev/sda
>
> To re-establish the manufacturer?s defaults in the
> current and saved caching control mode page:
>
> sdparm --page=ca --defaults -save /dev/sda
>
> If an ATAPI cd/dvd player is at /dev/hdc then its common
> (mode) parameters could be listed with:
>
> sdparm /dev/hdc
>
>
> Comments, suggestions and patches welcome.
>
>
> Doug Gilbert
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Folkert van Heusden
Auto te koop, zie: http://www.vanheusden.com/daihatsu.php
Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden.
--------------------------------------------------------------------
UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)
a try, it brings monitoring logfiles to a different level! See
http://vanheusden.com/multitail/features.html for a feature-list.
--------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE
Get your PGP/GPG key signed at www.biglumber.com!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 282 bytes --]
next prev parent reply other threads:[~2005-04-18 19:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 13:26 [ANNOUNCE] sdparm 0.90 Douglas Gilbert
2005-04-18 17:42 ` Jeff Garzik
2005-04-19 0:33 ` Douglas Gilbert
2005-04-18 19:50 ` folkert
2005-04-18 19:52 ` folkert [this message]
2005-04-19 0:42 ` Douglas Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050418195245.GV30729@vanheusden.com \
--to=folkert@vanheusden.com \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox