[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3435.0. "proGIS Software - Point 24786" by RDGENG::ASAP () Thu Apr 03 1997 10:33

    Company Name :  proGIS Software - Point 24786
    Contact Name :  kurt kaempf
    Phone        :  00 49 241-47067-11
    Fax          :  00 49 241-47067-29
    Email        :  [email protected]
    Date/Time in :   3-APR-1997 15:33:09
    Entered by   :  Ian Chamberlin
    SPE center   :  REO

    Category     :  UNIX
    OS Version   :  3.2, 4.0
    System H/W   :  Alpha


    Brief Description of Problem:
    -----------------------------

I'm writing a piece of software to directly access scsi devices under
digital unix (3.2G and 4.0). To check that the correct device is
accessed and to get the device characteristics, I'm using ioctl()
calls.

To test which device type was selected:

struct devget dev_info;
err = ioctl (device, DEVIOCGET, &dev_info);

This works as expected. Then I try to get the device geometry:

DEVGEOMST dev_geom;
err = ioctl (device, DEVGETGEOM, &dev_geom);

This doesn't work for all scsi devices. It works for /dev/fd0a (floppy)
and scsi disks with a valid boot block (i.e. if I unmount the second disk).
However, it fails with errno 5 (I/O error) for CD-ROM and MO (RWZ52)
drives.

T.RTitleUserPersonal
Name
DateLines
3435.1request more info (sent 4th April)RDGENG::CHAMBERLINDanger! Do not Reverse PolarityMon Apr 07 1997 06:0119
Kurt,

	I am looking into the query you raised regarding access to SCSI device
information. I don't have an immediate answer to your problem, but I will look
further and respond when I have more information. In the meantime, could you
also please e-mail me some more information?

I would like the output from the following two commands (I assume your MO disk
and CD have an rz device driver)

# file /dev/rrz*a

# scu show edt lun 0 full

Thanks,

Ian Chamberlin,

Digital Equipment Co, Software Partner Engineering (UK)
3435.2Reminder sent 11 AprilRDGENG::CHAMBERLINDanger! Do not Reverse PolarityMon Apr 28 1997 11:3443
Kurt,
	Did you receive my reply last week?

Have you resolved your problem, or do you still need help?	

Can you please send the information I requested. Not all SCSI devices contain
the information you are trying to determine. and the answers to these command
will help me to determine whether yours do, and the nature of the problem.

Thanks,

Ian Chamberlin,

Digital Equipment Co, Software Partner Engineering.

----------
From: 	ian[SMTP:ian]
Sent: 	Friday, April 04, 1997 10:44 AM
To: 	[email protected]
Cc: 	[email protected]
Subject: 	RE: your ASAP query, point no 24786

Kurt,

	I am looking into the query you raised regarding access to SCSI device
information. I don't have an immediate answer to your problem, but I will look
further and respond when I have more information. In the meantime, could you
also please e-mail me some more information?

I would like the output from the following two commands (I assume your MO disk
and CD have an rz device driver)

# file /dev/rrz*a

# scu show edt lun 0 full

Thanks,

Ian Chamberlin,

Digital Equipment Co, Software Partner Engineering (UK)


3435.3Closing callRDGENG::CHAMBERLINDanger! Do not Reverse PolarityMon Apr 28 1997 11:351
I'm closing this call because I still haven't had a reply of any sort.
3435.4Belated reply received 29 AprilRDGENG::CHAMBERLINDanger! Do not Reverse PolarityThu May 08 1997 04:3117
Ian,

thanks for your help and support. As I was told, the ioctl() command to
get the device geometry isn't supported for all devices in DU 4.0. Since
our customer only has one drive attached, my solution was to compile
the geometry values in.

Regards,

Klaus Kaempf

-- 
proGIS Software                 E-Mail: [email protected]
Dipl.-Inform. Klaus Kdmpf       Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de