chiark / gitweb /
udevadm: rename internal functions to udevadm_*
[elogind.git] / extras / volume_id / lib / linux_swap.c
index 9ff16e279861d92ac1e89e587aea04de624b19fa..13a0077f60c5a2e057ee10d2ef7da9603df2a8f5 100644 (file)
@@ -24,6 +24,7 @@
 #include <ctype.h>
 
 #include "libvolume_id.h"
+#include "libvolume_id-private.h"
 #include "util.h"
 
 struct swap_header_v1_2 {
@@ -73,6 +74,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;
                        }
+
+                       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;