Detect Linux software suspend partitions (thanks Stephen Tweedie).
[virt-df.git] / lib / diskimage_linux_swap.ml
index b9f01b1..b8c49e6 100644 (file)
@@ -35,7 +35,7 @@ let probe dev =
   | {
       (* Actually this isn't just padding. *)
       padding : 8*0x1000 - 10*8 : bitstring;
-      "SWAPSPACE2" : 80 : string
+      ("SWAP-SPACE"|"SWAPSPACE2") : 80 : string
     } ->
 
       let fs_dev = new blocksize_overlay blocksize dev in