• Home
  • Raw
  • Download

Lines Matching refs:probe

322 static int probe_ext4dev(struct blkid_probe *probe,  in probe_ext4dev()  argument
363 get_ext2_info(probe->dev, id, buf); in probe_ext4dev()
367 static int probe_ext4(struct blkid_probe *probe, struct blkid_magic *id, in probe_ext4() argument
411 get_ext2_info(probe->dev, id, buf); in probe_ext4()
415 static int probe_ext3(struct blkid_probe *probe, struct blkid_magic *id, in probe_ext3() argument
433 get_ext2_info(probe->dev, id, buf); in probe_ext3()
437 static int probe_ext2(struct blkid_probe *probe, struct blkid_magic *id, in probe_ext2() argument
465 get_ext2_info(probe->dev, id, buf); in probe_ext2()
469 static int probe_jbd(struct blkid_probe *probe, struct blkid_magic *id, in probe_jbd() argument
478 get_ext2_info(probe->dev, id, buf); in probe_jbd()
514 static int probe_fat(struct blkid_probe *probe, in probe_fat() argument
567 dir = (struct vfat_dir_entry *) get_buffer(probe, root_start, in probe_fat()
576 blkid_set_tag(probe->dev, "SEC_TYPE", "msdos", in probe_fat()
594 get_buffer(probe, next_off, buf_size); in probe_fat()
607 buf = get_buffer(probe, fat_entry_off, buf_size); in probe_fat()
629 blkid_set_tag(probe->dev, "LABEL", (const char *) label, label_len); in probe_fat()
630 blkid_set_tag(probe->dev, "UUID", serno, sizeof(serno)-1); in probe_fat()
641 static int probe_fat_nomagic(struct blkid_probe *probe, in probe_fat_nomagic() argument
679 return probe_fat(probe, id, buf); in probe_fat_nomagic()
682 static int probe_ntfs(struct blkid_probe *probe, in probe_ntfs() argument
721 buf_mft = get_buffer(probe, off, mft_record_size); in probe_ntfs()
731 buf_mft = get_buffer(probe, off, mft_record_size); in probe_ntfs()
740 buf_mft = get_buffer(probe, off, mft_record_size); in probe_ntfs()
783 blkid_set_tag(probe->dev, "UUID", uuid_str, 0); in probe_ntfs()
785 blkid_set_tag(probe->dev, "LABEL", label_str, 0); in probe_ntfs()
790 static int probe_xfs(struct blkid_probe *probe, in probe_xfs() argument
801 blkid_set_tag(probe->dev, "LABEL", label, sizeof(xs->xs_fname)); in probe_xfs()
802 set_uuid(probe->dev, xs->xs_uuid, 0); in probe_xfs()
806 static int probe_reiserfs(struct blkid_probe *probe, in probe_reiserfs() argument
827 set_uuid(probe->dev, rs->rs_uuid, 0); in probe_reiserfs()
829 blkid_set_tag(probe->dev, "LABEL", label, sizeof(rs->rs_label)); in probe_reiserfs()
834 static int probe_reiserfs4(struct blkid_probe *probe, in probe_reiserfs4() argument
843 set_uuid(probe->dev, rs4->rs4_uuid, 0); in probe_reiserfs4()
844 blkid_set_tag(probe->dev, "LABEL", (const char *) label, in probe_reiserfs4()
850 static int probe_jfs(struct blkid_probe *probe, in probe_jfs() argument
871 blkid_set_tag(probe->dev, "LABEL", label, sizeof(js->js_label)); in probe_jfs()
872 set_uuid(probe->dev, js->js_uuid, 0); in probe_jfs()
876 static int probe_zfs(struct blkid_probe *probe, struct blkid_magic *id, in probe_zfs() argument
884 blkid_set_tag(probe->dev, "LABEL", pool_name, sizeof(pool_name)); in probe_zfs()
885 set_uuid(probe->dev, pool_guid, 0); in probe_zfs()
890 static int probe_luks(struct blkid_probe *probe, in probe_luks() argument
899 blkid_set_tag(probe->dev, "UUID", uuid, sizeof(uuid)); in probe_luks()
903 static int probe_romfs(struct blkid_probe *probe, in probe_romfs() argument
914 blkid_set_tag(probe->dev, "LABEL", label, 0); in probe_romfs()
918 static int probe_cramfs(struct blkid_probe *probe, in probe_cramfs() argument
929 blkid_set_tag(probe->dev, "LABEL", label, 0); in probe_cramfs()
933 static int probe_swap0(struct blkid_probe *probe, in probe_swap0() argument
937 blkid_set_tag(probe->dev, "UUID", 0, 0); in probe_swap0()
938 blkid_set_tag(probe->dev, "LABEL", 0, 0); in probe_swap0()
942 static int probe_swap1(struct blkid_probe *probe, in probe_swap1() argument
948 probe_swap0(probe, id, buf); in probe_swap1()
955 sws = (struct swap_id_block *) get_buffer(probe, 1024, 1024); in probe_swap1()
967 blkid_set_tag(probe->dev, "LABEL", sws->sws_volume, in probe_swap1()
970 set_uuid(probe->dev, sws->sws_uuid, 0); in probe_swap1()
975 static int probe_iso9660(struct blkid_probe *probe, in probe_iso9660() argument
985 blkid_set_tag(probe->dev, "LABEL", (const char *) label, in probe_iso9660()
995 static int probe_udf(struct blkid_probe *probe, in probe_udf() argument
1007 get_buffer(probe, bs*2048+32768, sizeof(isosb)); in probe_udf()
1018 get_buffer(probe, j*bs*2048+32768, in probe_udf()
1028 return probe_iso9660(probe, id, buf); in probe_udf()
1038 static int probe_ocfs(struct blkid_probe *probe, in probe_ocfs() argument
1051 blkid_set_tag(probe->dev,"SEC_TYPE","ocfs1",sizeof("ocfs1")); in probe_ocfs()
1053 blkid_set_tag(probe->dev,"SEC_TYPE","ntocfs",sizeof("ntocfs")); in probe_ocfs()
1055 blkid_set_tag(probe->dev, "LABEL", ovl.label, ocfslabellen(ovl)); in probe_ocfs()
1056 blkid_set_tag(probe->dev, "MOUNT", ovh.mount, ocfsmountlen(ovh)); in probe_ocfs()
1057 set_uuid(probe->dev, ovl.vol_id, 0); in probe_ocfs()
1061 static int probe_ocfs2(struct blkid_probe *probe, in probe_ocfs2() argument
1069 blkid_set_tag(probe->dev, "LABEL", osb->s_label, sizeof(osb->s_label)); in probe_ocfs2()
1070 set_uuid(probe->dev, osb->s_uuid, 0); in probe_ocfs2()
1074 static int probe_oracleasm(struct blkid_probe *probe, in probe_oracleasm() argument
1082 blkid_set_tag(probe->dev, "LABEL", dl->dl_id, sizeof(dl->dl_id)); in probe_oracleasm()
1086 static int probe_gfs(struct blkid_probe *probe, in probe_gfs() argument
1098 blkid_set_tag(probe->dev, "UUID", 0, 0); in probe_gfs()
1102 blkid_set_tag(probe->dev, "LABEL", label, sizeof(sbd->sb_locktable)); in probe_gfs()
1108 static int probe_gfs2(struct blkid_probe *probe, in probe_gfs2() argument
1120 blkid_set_tag(probe->dev, "UUID", 0, 0); in probe_gfs2()
1124 blkid_set_tag(probe->dev, "LABEL", label, sizeof(sbd->sb_locktable)); in probe_gfs2()
1161 static int probe_hfs(struct blkid_probe *probe __BLKID_ATTR((unused)), in probe_hfs()
1176 blkid_set_tag(probe->dev, "UUID", uuid_str, 0); in probe_hfs()
1178 blkid_set_tag(probe->dev, "LABEL", hfs->label, hfs->label_len); in probe_hfs()
1183 static int probe_hfsplus(struct blkid_probe *probe, in probe_hfsplus() argument
1223 buf = get_buffer(probe, off + (id->bim_kboff * 1024), in probe_hfsplus()
1240 blkid_set_tag(probe->dev, "UUID", uuid_str, 0); in probe_hfsplus()
1247 buf = get_buffer(probe, off + (cat_block * blocksize), 0x2000); in probe_hfsplus()
1280 buf = get_buffer(probe, off + leaf_off, leaf_node_size); in probe_hfsplus()
1300 blkid_set_tag(probe->dev, "LABEL", label, 0); in probe_hfsplus()
1324 static int probe_lvm2(struct blkid_probe *probe, in probe_lvm2() argument
1366 blkid_set_tag(probe->dev, "UUID", uuid, LVM2_ID_LEN+6); in probe_lvm2()
1371 static int probe_btrfs(struct blkid_probe *probe, in probe_btrfs() argument
1382 blkid_set_tag(probe->dev, "LABEL", label, sizeof(bs->label)); in probe_btrfs()
1383 set_uuid(probe->dev, bs->fsid, 0); in probe_btrfs()
1500 struct blkid_probe probe; in blkid_verify() local
1543 if ((probe.fd = open(dev->bid_name, O_RDONLY)) < 0) { in blkid_verify()
1550 probe.cache = cache; in blkid_verify()
1551 probe.dev = dev; in blkid_verify()
1552 probe.sbbuf = 0; in blkid_verify()
1553 probe.buf = 0; in blkid_verify()
1554 probe.buf_max = 0; in blkid_verify()
1567 if (check_mdraid(probe.fd, uuid) == 0) { in blkid_verify()
1579 buf = get_buffer(&probe, idx << 10, 1024); in blkid_verify()
1588 (id->bim_probe(&probe, id, buf) == 0)) { in blkid_verify()
1627 free(probe.sbbuf); in blkid_verify()
1628 free(probe.buf); in blkid_verify()
1629 if (probe.fd >= 0) in blkid_verify()
1630 close(probe.fd); in blkid_verify()