diff options
author | Karsten Hopp <karsten@redhat.de> | 2003-04-16 10:59:12 +0000 |
---|---|---|
committer | Karsten Hopp <karsten@redhat.de> | 2003-04-16 10:59:12 +0000 |
commit | ce574b56c9545ba0e5ec2d636a1950f357a6d332 (patch) | |
tree | 0d7b79181637cd619b613b0099df7d52860c1fe9 | |
parent | 1831f208e6055351bb5e37237ca37f0fc5d6304b (diff) | |
download | anaconda-ce574b56c9545ba0e5ec2d636a1950f357a6d332.tar.gz anaconda-ce574b56c9545ba0e5ec2d636a1950f357a6d332.tar.xz anaconda-ce574b56c9545ba0e5ec2d636a1950f357a6d332.zip |
invert check for label to detect zero'ed out DASDs / DASDs with
garbage in the volume label (#88546)
-rw-r--r-- | isys/probe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isys/probe.c b/isys/probe.c index 2cf3ffe20..8e6db1f5a 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -190,8 +190,8 @@ int isUsableDasd(char *device) { #else char devname[16]; char label[5], v4_hex[9]; - char v4ebcdic_hex[] = "e5d6d3f1"; /* VOL1 */ char l4ebcdic_hex[] = "d3d5e7f1"; /* LNX1 */ + char cms1_hex[] = "c3d4e2f1"; /* CMS1 */ int f, ret, blksize; dasd_information_t dasd_info; volume_label_t vlabel; @@ -231,13 +231,13 @@ int isUsableDasd(char *device) { memset(v4_hex, 0, 9); strncpy(label, vlabel.volkey, 4); sprintf(v4_hex, "%02x%02x%02x%02x", label[0], label[1], label[2], label[3]); - if(!strncmp(v4_hex, v4ebcdic_hex, 9)) { - return 1; + if(!strncmp(v4_hex, cms1_hex, 9)) { + return 0; } if(!strncmp(v4_hex, l4ebcdic_hex, 9)) { return 2; } - return 0; + return 1; #endif } |