]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Add support for detecting software suspend partitions to blkid
authorKarel Zak <kzak@redhat.com>
Tue, 6 Sep 2005 10:42:49 +0000 (06:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 6 Sep 2005 10:42:49 +0000 (06:42 -0400)
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/ChangeLog
lib/blkid/probe.c

index 0d0607b5079165781762f665e04aa70f1e943644..e60ce6af7d3086900044e5d0a5d454737aa4d214 100644 (file)
@@ -1,5 +1,7 @@
 2005-09-05  Karel Zak <kzak@redhat.com>
 
+       * probe.c: Add support for detecting software suspend partitions
+
        * probe.c (probe_ext2): Check to see if a journal has been added
                to an ext2 filesystem when revalidating cached information
                about an ext2 device.
index 116a0ca65fd364f38bfeaba3cc75c9b5fd6f5955..fd076ca30af4f5d8d7b44856f7f7a8822a0231f9 100644 (file)
@@ -529,14 +529,24 @@ static struct blkid_magic type_array[] = {
   { "sysv",     0,  0x3f8,  4, "\020~\030\375",        0 },
   { "swap",     0,  0xff6, 10, "SWAP-SPACE",           probe_swap0 },
   { "swap",     0,  0xff6, 10, "SWAPSPACE2",           probe_swap1 },
+  { "swsuspend", 0,  0xff6,  9, "S1SUSPEND",           probe_swap1 },
+  { "swsuspend", 0,  0xff6,  9, "S2SUSPEND",           probe_swap1 },
   { "swap",     0, 0x1ff6, 10, "SWAP-SPACE",           probe_swap0 },
   { "swap",     0, 0x1ff6, 10, "SWAPSPACE2",           probe_swap1 },
+  { "swsuspend", 0, 0x1ff6,  9, "S1SUSPEND",           probe_swap1 },
+  { "swsuspend", 0, 0x1ff6,  9, "S2SUSPEND",           probe_swap1 },
   { "swap",     0, 0x3ff6, 10, "SWAP-SPACE",           probe_swap0 },
   { "swap",     0, 0x3ff6, 10, "SWAPSPACE2",           probe_swap1 },
+  { "swsuspend", 0, 0x3ff6,  9, "S1SUSPEND",           probe_swap1 },
+  { "swsuspend", 0, 0x3ff6,  9, "S2SUSPEND",           probe_swap1 },
   { "swap",     0, 0x7ff6, 10, "SWAP-SPACE",           probe_swap0 },
   { "swap",     0, 0x7ff6, 10, "SWAPSPACE2",           probe_swap1 },
+  { "swsuspend", 0, 0x7ff6,  9, "S1SUSPEND",           probe_swap1 },
+  { "swsuspend", 0, 0x7ff6,  9, "S2SUSPEND",           probe_swap1 },
   { "swap",     0, 0xfff6, 10, "SWAP-SPACE",           probe_swap0 },
   { "swap",     0, 0xfff6, 10, "SWAPSPACE2",           probe_swap1 },
+  { "swsuspend", 0, 0xfff6,  9, "S1SUSPEND",           probe_swap1 },
+  { "swsuspend", 0, 0xfff6,  9, "S2SUSPEND",           probe_swap1 },
   { "ocfs",     0,      8,  9, "OracleCFS",            probe_ocfs },
   { "ocfs2",    1,      0,  6, "OCFSV2",               probe_ocfs2 },
   { "ocfs2",    2,      0,  6, "OCFSV2",               probe_ocfs2 },