Skip to contentSkip to conversation

vol_id: add missing id->type to swap0

PATCH Applied Karel Zak 2 participants 2 messages Jan 23, 2009 – Jan 24, 2009

lore
Share & tools
lore

Karel Zak

author
#0 lore raw

PATCH 1/1 vol_id: add missing id->type to swap0

---
 extras/volume_id/lib/linux_swap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
extras/volume_id/lib/linux_swap.c +1 -0
index 1698e9d..53649bd 100644
@@ -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;
 			}
Signature · 1 line
1.5.6.5