Lines Matching refs:pr

113 static int find_gpt_root(sd_device *dev, blkid_probe pr, bool test) {  in find_gpt_root()  argument
121 assert(pr); in find_gpt_root()
128 blkid_partlist pl = blkid_probe_get_partitions(pr); in find_gpt_root()
202 static int probe_superblocks(blkid_probe pr) { in probe_superblocks() argument
208 if (fstat(blkid_probe_get_fd(pr), &st)) in probe_superblocks()
211 blkid_probe_enable_partitions(pr, 1); in probe_superblocks()
214 blkid_probe_get_size(pr) <= 1024 * 1440 && in probe_superblocks()
215 blkid_probe_is_wholedisk(pr)) { in probe_superblocks()
220 blkid_probe_enable_superblocks(pr, 0); in probe_superblocks()
222 rc = blkid_do_fullprobe(pr); in probe_superblocks()
226 if (blkid_probe_lookup_value(pr, "PTTYPE", NULL, NULL) == 0) in probe_superblocks()
230 blkid_probe_set_partitions_flags(pr, BLKID_PARTS_ENTRY_DETAILS); in probe_superblocks()
231 blkid_probe_enable_superblocks(pr, 1); in probe_superblocks()
233 return blkid_do_safeprobe(pr); in probe_superblocks()
238 _cleanup_(blkid_free_probep) blkid_probe pr = NULL; in builtin_blkid()
252 pr = blkid_new_probe(); in builtin_blkid()
253 if (!pr) in builtin_blkid()
267 r = blkid_probe_set_hint(pr, optarg, 0); in builtin_blkid()
293 blkid_probe_set_superblocks_flags(pr, in builtin_blkid()
299 blkid_probe_filter_superblocks_usage(pr, BLKID_FLTR_NOTIN, BLKID_USAGE_RAID); in builtin_blkid()
314 r = blkid_probe_set_device(pr, fd, offset, 0); in builtin_blkid()
320 r = probe_superblocks(pr); in builtin_blkid()
328 int nvals = blkid_probe_numof_values(pr); in builtin_blkid()
333 if (blkid_probe_get_value(pr, i, &name, &data, NULL) < 0) in builtin_blkid()
349 find_gpt_root(dev, pr, test); in builtin_blkid()