Associate opaque plugin ID with each major structure.
[virt-df.git] / lib / diskimage_ext2.ml
index 0457597..1b70977 100644 (file)
@@ -24,9 +24,10 @@ open Printf
 
 open Diskimage_utils
 
+let plugin_id = "ext2"
 let superblock_offset = 1024L
 
-let probe_ext2 dev =
+let probe dev =
   (* Load the superblock. *)
   let bits = dev#read_bitstring superblock_offset 1024 in
 
@@ -113,7 +114,7 @@ let probe_ext2 dev =
    let overhead = (* XXX *) overhead in
 
    {
-     fs_name = "Linux ext2/3";
+     fs_plugin_id = plugin_id;
      fs_block_size = block_size;
      fs_blocks_total = Int64.of_int32 s_blocks_count -^ overhead;
      fs_is_swap = false;