Home | History | Annotate | Download | only in blkid

Lines Matching refs:label

37 static int figure_label_len(const unsigned char *label, int len)
39 const unsigned char *end = label + len - 1;
41 while ((*end == ' ' || *end == 0) && end >= label)
43 if (end >= label) {
44 label = label;
45 return end - label + 1;
140 const char *label = 0;
148 label = es->s_volume_name;
149 blkid_set_tag(dev, "LABEL", label, sizeof(es->s_volume_name));
436 /* FAT label extraction from the root directory taken from Kay
446 const unsigned char *label = 0, *vol_label = 0, *tmp;
485 /* the label may be an attribute in the root directory */
503 /* Search the FAT32 root dir for the label attribute */
546 label = vol_label;
553 blkid_set_tag(probe->dev, "LABEL", (const char *) label, label_len);
696 blkid_set_tag(probe->dev, "LABEL", label_str, 0);
706 const char *label = 0;
711 label = xs->xs_fname;
712 blkid_set_tag(probe->dev, "LABEL", label, sizeof(xs->xs_fname));
722 const char *label = 0;
734 /* LABEL/UUID are only valid for later versions of Reiserfs v3.6. */
737 label = rs->rs_label;
740 blkid_set_tag(probe->dev, "LABEL", label, sizeof(rs->rs_label));
750 const unsigned char *label = 0;
753 label = rs4->rs4_label;
755 blkid_set_tag(probe->dev, "LABEL", (const char *) label,
766 const char *label = 0;
771 label = (char *) js->js_label;
772 blkid_set_tag(probe->dev, "LABEL", label, sizeof(js->js_label));
794 const char *label = 0;
799 label = (char *) ros->ros_volume;
800 blkid_set_tag(probe->dev, "LABEL", label, 0);
809 const char *label = 0;
814 label = (char *) csb->name;
815 blkid_set_tag(probe->dev, "LABEL", label, 0);
824 blkid_set_tag(probe->dev, "LABEL", 0, 0);
848 blkid_set_tag(probe->dev, "LABEL", sws->sws_volume,
861 const unsigned char *label;
864 label = iso->volume_id;
866 blkid_set_tag(probe->dev, "LABEL", (const char *) label,
867 figure_label_len(label, 32));
936 blkid_set_tag(probe->dev, "LABEL", ovl.label, ocfslabellen(ovl));
950 blkid_set_tag(probe->dev, "LABEL", osb->s_label, sizeof(osb->s_label));
963 blkid_set_tag(probe->dev, "LABEL", dl->dl_id, sizeof(dl->dl_id));
972 const char *label = 0;
982 label = sbd->sb_locktable;
983 blkid_set_tag(probe->dev, "LABEL", label, sizeof(sbd->sb_locktable));
994 const char *label = 0;
1004 label = sbd->sb_locktable;
1005 blkid_set_tag(probe->dev, "LABEL", label, sizeof(sbd->sb_locktable));
1049 struct lvm2_pv_label_header *label;
1050 label = (struct lvm2_pv_label_header *)buf;
1054 /* buf is at 0k or 1k offset; find label inside */
1056 label = (struct lvm2_pv_label_header *)buf;
1058 label = (struct lvm2_pv_label_header *)(buf + 512);
1064 if (blkid_le64(label->sector_xl) != (unsigned) sector) {
1066 printf("LVM2: label for sector %llu found at sector %d\n",
1067 blkid_le64(label->sector_xl), sector));
1071 if (lvm2_calc_crc(&label->offset_xl, LVM2_LABEL_SIZE -
1072 ((char *)&label->offset_xl - (char *)label)) !=
1073 blkid_le32(label->crc_xl)) {
1075 printf("LVM2: label checksum incorrect at sector %d\n",
1080 for (i=0, b=1, p=uuid, q= (char *) label->pv_uuid; i <= 32;
1363 printf("LABEL='%s'\n", dev->bid_label);