1 (* 'df' command for virtual domains.
3 * Support for Linux swap partitions.
6 (* Int64 operators for convenience. *)
12 let probe_swap target part_type fd start size =
14 Virt_df.swap_name = "Linux swap";
15 swap_block_size = 4096L; (* XXX *)
16 swap_blocks_total = size *^ 512L /^ 4096L;
19 (* Register with main code. *)
22 [ 0x82 ] (* Partition type. *)