5b255808fb705a0335b7f1245b87a7ebaed180e4
[virt-df.git] / lib / diskimage_lvm2_metadata.mli
1 (* 'df' command for virtual domains.
2    (C) Copyright 2007-2008 Richard W.M. Jones, Red Hat Inc.
3    http://libvirt.org/
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2 of the License, or (at your option) any later version,
9    with the OCaml linking exception described in ../COPYING.LIB.
10
11    This library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with this library; if not, write to the Free Software
18    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
19  *)
20
21 (* Part of the parser for LVM2 metadata. *)
22
23 type metadata = metastmt list
24
25 and metastmt = string * metavalue
26
27 and metavalue =
28   | Metadata of metadata                (* name { ... } *)
29   | String of string                    (* name = "..." *)
30   | Int of Int63.t
31   | Float of float
32   | List of metavalue list              (* name = [...] *)
33
34 val output_metadata : out_channel -> metadata -> unit
35 (** This function prints out the metadata on the selected channel.
36
37     The output format isn't particularly close to the input
38     format.  This is just for debugging purposes.
39 *)