summaryrefslogtreecommitdiffstats
path: root/isys/isys.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-18 21:54:01 +0000
committerMatt Wilson <msw@redhat.com>2000-07-18 21:54:01 +0000
commitec8f599300b7a68650b7fa2130ffe1123f3ae94d (patch)
tree18710ab26b7540d7f5f9e411f304362e5041c46f /isys/isys.c
parentf980a4d581eb8dea04a0f0a8129421eca60eb02a (diff)
downloadanaconda-ec8f599300b7a68650b7fa2130ffe1123f3ae94d.tar.gz
anaconda-ec8f599300b7a68650b7fa2130ffe1123f3ae94d.tar.xz
anaconda-ec8f599300b7a68650b7fa2130ffe1123f3ae94d.zip
hack for aacraid
Diffstat (limited to 'isys/isys.c')
-rw-r--r--isys/isys.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/isys/isys.c b/isys/isys.c
index 670c30f56..5e34740ce 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -1276,9 +1276,15 @@ static PyObject * doIsScsiRemovable(PyObject * s, PyObject * args) {
/* look at byte 1, bit 7 for removable flag */
if (!(rc = ioctl(fd, SCSI_IOCTL_SEND_COMMAND, &inq))) {
- if (inq.cmd[1] & (1 << 7))
+ if (inq.cmd[1] & (1 << 7)) {
+ /* XXX check the vendor, if it's DELL or HP it could be
+ an adaptec perc RAID (aacraid) device */
+ if ((!strncmp (inq.cmd + 16, "DELL", 4))
+ || (!strncmp (inq.cmd + 16, "HP", 2))) {
+ rc = 0;
+ }
rc = 1;
- else
+ } else
rc = 0;
} else {
/* printf ("ioctl resulted in error %d\n", rc); */