goto done;
if (blkid_probe_set_device(blprobe, fd, 0, 0))
goto done;
- if (blkid_probe_set_request(blprobe, BLKID_PROBREQ_LABEL |
- BLKID_PROBREQ_UUID | BLKID_PROBREQ_TYPE ))
- goto done;
+
+ blkid_probe_enable_superblocks(blprobe, 1);
+
+ blkid_probe_set_superblocks_flags(blprobe,
+ BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID | BLKID_SUBLKS_TYPE);
+
if (blkid_do_safeprobe(blprobe))
goto done;
if (blkid_probe_lookup_value(blprobe, name, &data, NULL))
pr = blkid_new_probe();
if (!pr)
goto exit;
- blkid_probe_set_request(pr,
- BLKID_PROBREQ_LABEL | BLKID_PROBREQ_UUID |
- BLKID_PROBREQ_TYPE | BLKID_PROBREQ_SECTYPE |
- BLKID_PROBREQ_USAGE | BLKID_PROBREQ_VERSION);
+
+ blkid_probe_enable_superblocks(pr, 1);
+
+ blkid_probe_set_superblocks_flags(pr,
+ BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID |
+ BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE |
+ BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION);
+
if (fltr_usage &&
- blkid_probe_filter_usage(pr, fltr_flag, fltr_usage))
+ blkid_probe_filter_superblocks_usage(pr, fltr_flag, fltr_usage))
goto exit;
for (i = 0; i < numdev; i++)
if (!pr)
return -1;
- blkid_probe_set_request(pr, BLKID_PROBREQ_LABEL | BLKID_PROBREQ_UUID);
+ blkid_probe_enable_superblocks(pr, TRUE);
+ blkid_probe_set_superblocks_flags(pr,
+ BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID);
fd = open(devname, O_RDONLY);
if (fd < 0) {
static void ext_get_info(blkid_probe pr, int ver, struct ext2_super_block *es)
{
+ struct blkid_chain *chn = blkid_probe_get_chain(pr);
+
DBG(DEBUG_PROBE, printf("ext2_sb.compat = %08X:%08X:%08X\n",
le32_to_cpu(es->s_feature_compat),
le32_to_cpu(es->s_feature_incompat),
if (le32_to_cpu(es->s_feature_compat) & EXT3_FEATURE_COMPAT_HAS_JOURNAL)
blkid_probe_set_uuid_as(pr, es->s_journal_uuid, "EXT_JOURNAL");
- if (ver != 2 && (pr->probreq & BLKID_PROBREQ_SECTYPE) &&
+ if (ver != 2 && (chn->flags & BLKID_SUBLKS_SECTYPE) &&
((le32_to_cpu(es->s_feature_incompat) & EXT2_FEATURE_INCOMPAT_UNSUPPORTED) == 0))
blkid_probe_set_value(pr, "SEC_TYPE",
(unsigned char *) "ext2",
return NULL;
}
- blkid_probe_set_request(cache->probe,
- BLKID_PROBREQ_LABEL | BLKID_PROBREQ_UUID |
- BLKID_PROBREQ_TYPE | BLKID_PROBREQ_SECTYPE);
+ blkid_probe_enable_superblocks(cache->probe, TRUE);
+
+ blkid_probe_set_superblocks_flags(cache->probe,
+ BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID |
+ BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE);
/*
* If we already know the type, then try that first.
fltr[0] = dev->bid_type;
fltr[1] = NULL;
- blkid_probe_filter_types(cache->probe,
+ blkid_probe_filter_superblocks_type(cache->probe,
BLKID_FLTR_ONLYIN, fltr);
if (!blkid_do_probe(cache->probe))
goto found_type;
- blkid_probe_invert_filter(cache->probe);
+ blkid_probe_invert_superblocks_filter(cache->probe);
/*
* Zap the device filesystem information and try again
}
blkid_reset_probe(cache->probe);
- blkid_probe_reset_filter(cache->probe);
+ blkid_probe_reset_superblocks_filter(cache->probe);
close(fd);
return dev;
}