summaryrefslogtreecommitdiffstats
path: root/isys/isys.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-24 15:43:17 +0000
committerMatt Wilson <msw@redhat.com>2000-07-24 15:43:17 +0000
commit1274f10948de565b7a49479bacd3dddb8d0d76fe (patch)
treef8964a8ec88587c55439ac374e567196fd648eca /isys/isys.c
parent5ad52a79a4e101008e0ed91322edc6f1a68e0a79 (diff)
downloadanaconda-1274f10948de565b7a49479bacd3dddb8d0d76fe.tar.gz
anaconda-1274f10948de565b7a49479bacd3dddb8d0d76fe.tar.xz
anaconda-1274f10948de565b7a49479bacd3dddb8d0d76fe.zip
patch from matt
Diffstat (limited to 'isys/isys.c')
-rw-r--r--isys/isys.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/isys/isys.c b/isys/isys.c
index 12966a067..af60cdcba 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -1239,7 +1239,13 @@ static PyObject * doExt2Dirty(PyObject * s, PyObject * args) {
return Py_BuildValue("i", !clean);
}
-
+/* doIsScsiRemovable()
+ Returns:
+ -1 on error
+ 0 if not removable
+ 0 if removable, but is aacraid driver (should be treated as not removable)
+ 1 if removable (not to be used by installer)
+*/
static PyObject * doIsScsiRemovable(PyObject * s, PyObject * args) {
char *path;
int fd;
@@ -1282,8 +1288,8 @@ static PyObject * doIsScsiRemovable(PyObject * s, PyObject * args) {
if ((!strncmp (inq.cmd + 8, "DELL", 4))
|| (!strncmp (inq.cmd + 8, "HP", 2))) {
rc = 0;
- }
- rc = 1;
+ } else
+ rc = 1;
} else
rc = 0;
} else {