Lines Matching +full:no +full:- +full:bf
3 /*-
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
113 if (cd == (iconv_t)-1) { in convert_label()
122 if (rc == (size_t)-1) { in convert_label()
126 /* NUL-terminate result (iconv advances label_out). */ in convert_label()
128 label_out--; in convert_label()
138 struct ntfs_bootfile *bf; in fstyp_ntfs() local
148 bf = read_buf(fp, 0, 512); in fstyp_ntfs()
149 if (bf == NULL || strncmp((char*)bf->bf_sysid, "NTFS ", 8) != 0) in fstyp_ntfs()
154 mftrecsz = bf->bf_mftrecsz; in fstyp_ntfs()
155 recsize = mftrecsz > 0 ? (size_t)(mftrecsz * bf->bf_bps * bf->bf_spc) in fstyp_ntfs()
156 : (size_t)(1 << -mftrecsz); in fstyp_ntfs()
158 voloff = (off_t)((off_t)bf->bf_mftcn * bf->bf_spc * bf->bf_bps + in fstyp_ntfs()
166 if (fr->fr_hdrmagic != NTFS_FILEMAGIC) in fstyp_ntfs()
169 for (ap = filerecp + fr->fr_attroff; in fstyp_ntfs()
170 atr = (struct ntfs_attr *)ap, (int)atr->a_type != -1; in fstyp_ntfs()
171 ap += atr->reclen) { in fstyp_ntfs()
172 if (atr->a_type != NTFS_A_VOLUMENAME) in fstyp_ntfs()
175 convert_label(ap + atr->a_dataoff, in fstyp_ntfs()
176 atr->a_datalen, label, size); in fstyp_ntfs()
181 free(bf); in fstyp_ntfs()
187 free(bf); in fstyp_ntfs()