diff options
author | Karel Zak <kzak@redhat.com> | 2009-01-24 00:37:23 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-24 15:21:15 +0100 |
commit | 7e5861ff70994fdc2e383e227ff24225ac5f7ce5 (patch) | |
tree | ccc49b73803906885c370414d155707d5b509ced /extras | |
parent | 3e2084614b4d8308d5c0ceb34ec3634eb3353c00 (diff) |
vol_id: add missing id->type to swap0
Signed-off-by: Karel Zak <kzak@redhat.com>
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; } |