linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: linux-scsi@vger.kernel.org
Subject: sg3_utils-1.02 and sg_utils-1.02 betas
Date: Thu, 12 Dec 2002 23:10:08 +1100	[thread overview]
Message-ID: <3DF87CA0.50702@torque.net> (raw)

There are tarballs of these 2 packages linked at the top
of my http://www.torque.net/sg page.

As noted earlier the addition of some of sg's ioctls in
the block level (from about lk 2.5.48) brings both
advantages and dangers.

The main danger is that utilities (e.g. most of those
in sg_utils) that assume that any device responding to
one of sg's ioctls is an sg device and hence it is safe
to use sg's older write()/read() interface. **

The advantage is that the variant that assumed the version
3 sg driver (i.e. sg3_utils-1.02) can send SG_IO ioctls
straight through to block devices. For example:
   sg_inq /dev/sdb
   sg_logs -p=d /dev/sda    # this is the temperature page
The SG_IO ioctl in the block level still has some rough
edges. Hence utilities like sg_dd still treat block devices
like normal files (although there is an extra option to
send SG_IO ioctls through to block devices).

See the CHANGELOG file for more details.


** I have some practical experience of what happens (with
sginfo). The first 48 bytes (or so) of a disk get overwritten.
This damages the boot loader (grub in my case) so you can no
longer boot with that disk. The good news is that all
partitions and the partition table are still intact.
Luckily the first 48 bytes on a boot disk of redhat's last
few versions (since they defaulted to grub) are invariant.

Doug Gilbert


                 reply	other threads:[~2002-12-12 12:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3DF87CA0.50702@torque.net \
    --to=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;
as well as URLs for NNTP newsgroup(s).