diff options
Diffstat (limited to 'libblkid/src/superblocks/lsi_raid.c')
-rw-r--r-- | libblkid/src/superblocks/lsi_raid.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libblkid/src/superblocks/lsi_raid.c b/libblkid/src/superblocks/lsi_raid.c index 56721dd71..697b0fe89 100644 --- a/libblkid/src/superblocks/lsi_raid.c +++ b/libblkid/src/superblocks/lsi_raid.c @@ -30,9 +30,9 @@ static int probe_lsiraid(blkid_probe pr, struct lsi_metadata *lsi; if (pr->size < 0x10000) - return -1; + return 1; if (!S_ISREG(pr->mode) && !blkid_probe_is_wholedisk(pr)) - return -1; + return 1; off = ((pr->size / 0x200) - 1) * 0x200; lsi = (struct lsi_metadata *) @@ -40,13 +40,13 @@ static int probe_lsiraid(blkid_probe pr, off, sizeof(struct lsi_metadata)); if (!lsi) - return -1; + return errno ? -errno : 1; if (memcmp(lsi->sig, LSI_SIGNATURE, sizeof(LSI_SIGNATURE)-1) != 0) - return -1; + return 1; if (blkid_probe_set_magic(pr, off, sizeof(lsi->sig), (unsigned char *) lsi->sig)) - return -1; + return 1; return 0; } |