* sg3_utils-1.02 and sg_utils-1.02 betas
@ 2002-12-12 12:10 Douglas Gilbert
0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2002-12-12 12:10 UTC (permalink / raw)
To: linux-scsi
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-12 12:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-12 12:10 sg3_utils-1.02 and sg_utils-1.02 betas Douglas Gilbert
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).