&highpoint37x_idinfo,
&adraid_idinfo,
&jmraid_idinfo,
+
&lvm2_idinfo,
&lvm1_idinfo,
&snapcow_idinfo,
* (cannot be used in while()) and checks for ambivalen results (more
* filesystems on the device) -- in such case returns -2.
*
- * The function does not check for filesystems when a RAID signature is
- * detected. The function also does not check for collision between RAIDs. The
- * first detected RAID is returned.
+ * The function does not check for filesystems when a RAID or crypto signature
+ * is detected. The function also does not check for collision between RAIDs
+ * and crypto devices. The first detected RAID or crypto device is returned.
*/
static int superblocks_safeprobe(blkid_probe pr, struct blkid_chain *chn)
{
}
count++;
- if (idinfos[chn->idx]->usage & BLKID_USAGE_RAID)
+ if (idinfos[chn->idx]->usage & (BLKID_USAGE_RAID | BLKID_USAGE_CRYPTO))
break;
if (!(idinfos[chn->idx]->flags & BLKID_IDINFO_TOLERANT))
intol++;