+ version = hs->version;
+
+ /* if boot block looks valid, read label and uuid from there */
+ hbb = (struct hpfs_boot_block *) volume_id_get_buffer(id, off, 0x200);
+ if (hbb == NULL)
+ return -1;
+ if (memcmp(hbb->magic, "\x55\xaa", 2) == 0 &&
+ memcmp(hbb->sig_hpfs, "HPFS", 4) == 0 &&
+ hbb->sig_28h == 0x28) {
+ volume_id_set_label_raw(id, hbb->vol_label, 11);
+ volume_id_set_label_string(id, hbb->vol_label, 11);
+ volume_id_set_uuid(id, hbb->vol_serno, 0, UUID_DOS);