Lines Matching refs:pr
107 static int find_gpt_root(struct udev_device *dev, blkid_probe pr, bool test) {
116 assert(pr);
123 pl = blkid_probe_get_partitions(pr);
191 static int probe_superblocks(blkid_probe pr) {
195 if (fstat(blkid_probe_get_fd(pr), &st))
198 blkid_probe_enable_partitions(pr, 1);
201 blkid_probe_get_size(pr) <= 1024 * 1440 &&
202 blkid_probe_is_wholedisk(pr)) {
207 blkid_probe_enable_superblocks(pr, 0);
209 rc = blkid_do_fullprobe(pr);
213 if (blkid_probe_lookup_value(pr, "PTTYPE", NULL, NULL) == 0)
217 blkid_probe_set_partitions_flags(pr, BLKID_PARTS_ENTRY_DETAILS);
218 blkid_probe_enable_superblocks(pr, 1);
220 return blkid_do_safeprobe(pr);
228 blkid_probe pr;
260 pr = blkid_new_probe();
261 if (!pr)
264 blkid_probe_set_superblocks_flags(pr,
271 blkid_probe_filter_superblocks_usage(pr, BLKID_FLTR_NOTIN, BLKID_USAGE_RAID);
279 err = blkid_probe_set_device(pr, fd, offset, 0);
287 err = probe_superblocks(pr);
290 if (blkid_probe_has_value(pr, "SBBADCSUM")) {
291 if (!blkid_probe_lookup_value(pr, "TYPE", &prtype, NULL))
304 nvals = blkid_probe_numof_values(pr);
306 if (blkid_probe_get_value(pr, i, &name, &data, NULL))
322 find_gpt_root(dev, pr, test);
324 blkid_free_probe(pr);