libvolume_id: recognize swap partitions with a tuxonice hibernate image

This commit is contained in:
Damjan Georgievski
2008-04-21 12:44:25 +02:00
committed by Kay Sievers
parent 41677cf51f
commit be9c76b434
+6
View File
@@ -73,6 +73,12 @@ int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off, uint64_t size
strcpy(id->type_version, "ulsuspend");
goto found_label;
}
if (memcmp(buf, "\xed\xc3\x02\xe9\x98\x56\xe5\x0c", 8) == 0) {
id->type = "suspend";
strcpy(id->type_version, "tuxonice");
goto found_label;
}
}
return -1;