open Diskimage_utils
-let probe_swap dev =
+let plugin_id = "linux_swap"
+
+let probe dev =
(* Load the "superblock" (ie. first 0x1000 bytes). *)
let bits = dev#read_bitstring 0L 0x1000 in
"SWAPSPACE2" : 80 : string
} ->
{
- fs_name = "Linux swap";
+ fs_plugin_id = plugin_id;
fs_block_size = 4096L; (* XXX *)
fs_blocks_total = dev#size /^ 4096L;