diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/volume_id/lib/linux_swap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/volume_id/lib/linux_swap.c b/extras/volume_id/lib/linux_swap.c index 1698e9dbf7..53649bdb75 100644 --- a/extras/volume_id/lib/linux_swap.c +++ b/extras/volume_id/lib/linux_swap.c @@ -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; } |