&oracleasm_idinfo,
&reiser_idinfo,
&reiser4_idinfo,
- &jbd_idinfo
+ &jbd_idinfo,
+ &hfsplus_idinfo,
+ &hfs_idinfo
};
#ifndef ARRAY_SIZE
size_t i, j;
uint16_t c;
- j = 0;
- for (i = 0; i + 2 <= count; i += 2) {
+ for (j = i = 0; i + 2 <= count; i += 2) {
if (enc == BLKID_ENC_UTF16LE)
c = (src[i+1] << 8) | src[i];
else /* BLKID_ENC_UTF16BE */
v = blkid_probe_assign_value(pr, "LABEL");
if (!v)
return -1;
+
v->len = encode_to_utf8(enc, v->data, sizeof(v->data), label, len);
- v->len++; /* \0 */
return 0;
}
extern const struct blkid_idinfo oracleasm_idinfo;
extern const struct blkid_idinfo reiser_idinfo;
extern const struct blkid_idinfo reiser4_idinfo;
+extern const struct blkid_idinfo hfs_idinfo;
+extern const struct blkid_idinfo hfsplus_idinfo;
#endif /* _BLKID_PROBE_H */