chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41677cf
)
libvolume_id: recognize swap partitions with a tuxonice hibernate image
author
Damjan Georgievski
<gdamjan@gmail.com>
Mon, 21 Apr 2008 10:44:25 +0000
(12:44 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 21 Apr 2008 10:44:25 +0000
(12:44 +0200)
extras/volume_id/lib/linux_swap.c
patch
|
blob
|
history
diff --git
a/extras/volume_id/lib/linux_swap.c
b/extras/volume_id/lib/linux_swap.c
index 9ff16e279861d92ac1e89e587aea04de624b19fa..592a38570d46d4852fcf4b4c93f4430676054723 100644
(file)
--- a/
extras/volume_id/lib/linux_swap.c
+++ b/
extras/volume_id/lib/linux_swap.c
@@
-73,6
+73,12
@@
int volume_id_probe_linux_swap(struct volume_id *id, uint64_t off, uint64_t size
strcpy(id->type_version, "ulsuspend");
goto found_label;
}
strcpy(id->type_version, "ulsuspend");
goto found_label;
}
+
+ if (memcmp(buf, "\xed\xc3\x02\xe9\x98\x56\xe5\x0c", 8) == 0) {
+ id->type = "suspend";
+ strcpy(id->type_version, "tuxonice");
+ goto found_label;
+ }
}
return -1;
}
return -1;