vol_id: add missing id->type to swap0

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2009-01-24 00:37:23 +01:00 committed by Kay Sievers
parent 3e2084614b
commit 7e5861ff70

View File

@ -57,6 +57,7 @@ int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off, uint64_t size
return -1;
if (memcmp(buf, "SWAP-SPACE", 10) == 0) {
id->type = "swap";
strcpy(id->type_version, "1");
goto found;
}