mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-25 08:29:59 +07:00
vol_id: add missing id->type to swap0
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
3e2084614b
commit
7e5861ff70
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user