]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: diffs between errors and failed probing in silicon raid
authorKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 10:54:19 +0000 (12:54 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Sep 2013 10:54:19 +0000 (12:54 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/superblocks/silicon_raid.c

index aeab4bf31954dea034f64fb9f7e38c70177964e1..7abc46afd03eea237ae0453ee98c1a26fb3d57ec 100644 (file)
@@ -101,12 +101,12 @@ static int probe_silraid(blkid_probe pr,
                return -1;
 
        if (le32_to_cpu(sil->magic) != SILICON_MAGIC)
-               return -1;
+               return 1;
        if (sil->disk_number >= 8)
-               return -1;
+               return 1;
        if (!checksum(sil)) {
                DBG(LOWPROBE, blkid_debug("silicon raid: incorrect checksum"));
-               return -1;
+               return 1;
        }
 
        if (blkid_probe_sprintf_version(pr, "%u.%u",