struct blkid_idinfo
{
const char *name; /* FS/RAID name */
- const char *secname; /* second FS/RAID name */
int usage; /* BLKID_USAGE_* flag */
/* probe function */
blkid_probe_set_value(pr, "TYPE",
(unsigned char *) id->name,
strlen(id->name) + 1);
- if ((pr->probreq & BLKID_PROBREQ_SECTYPE) && id->secname)
- blkid_probe_set_value(pr, "SEC_TYPE",
- (unsigned char *) id->secname,
- strlen(id->secname) + 1);
if (pr->probreq & BLKID_PROBREQ_USAGE)
blkid_probe_set_usage(pr, id->usage);
if (ver != 2 && (pr->probreq & BLKID_PROBREQ_SECTYPE) &&
((le32_to_cpu(es->s_feature_incompat) & EXT2_FEATURE_INCOMPAT_UNSUPPORTED) == 0))
- blkid_probe_sprintf_version(pr, "%u.%u",
- le32_to_cpu(es->s_rev_level), le16_to_cpu(es->s_minor_rev_level));
+ blkid_probe_set_value(pr, "SEC_TYPE",
+ (unsigned char *) "ext2",
+ sizeof("ext2"));
+
+ blkid_probe_sprintf_version(pr, "%u.%u",
+ le32_to_cpu(es->s_rev_level),
+ le16_to_cpu(es->s_minor_rev_level));
}