This subdirectory contains a library of useful functions for parsing
disk images.
-It is all based on and uses the pa_bitmatch syntax extension &
-library. You need pa_bitmatch >= 0.5.
+It is all based on and uses the pa_bitstring syntax extension &
+library. You need pa_bitstring >= 1.9.7.
This program has suddenly become rather large and confusing.
Hopefully this documentation should go some way towards explaining
The main program consists of two modules:
- - diskimage.ml / diskimage.mli (module name: Diskimage)
+ - diskimage.ml / diskimage.mli
+
+ This is the library. It loads the domain descriptions, calls out
+ to the plug-ins to probe for disks / partitions / filesystems /
+ etc., and finally returns the results.
+
+ - diskimage_utils.ml / diskimage_utils.mli (module name: Diskimage_utils)
This has evolved into a library of miscellaneous functions
and values which are included throughout the rest of the
Start by reading diskimage.mli which contains the full types
and plenty of documentation.
- - diskimage_main.ml
-
- This is the program. It reads the command line arguments,
- loads the domain descriptions, calls out to the plug-ins
- to probe for disks / partitions / filesystems / etc., and
- finally prints the results.
-
- The file consists of basically one large program that
- does all of the above in sequence.
-
Everything else in this directory is a plug-in specialized for probing
a particular filesystem, partition scheme or type of LVM. The
plug-ins at time of writing are: