1 (** 'df' command for virtual domains. *)
2 (* (C) Copyright 2007-2008 Richard W.M. Jones, Red Hat Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 (** This module (Virt_df) contains functions and values which are
21 used throughout the plug-ins and main code.
24 val debug : bool ref (** If true, emit debug info to stderr*)
25 val uri : string option ref (** Hypervisor/libvirt URI. *)
26 val inodes : bool ref (** Display inodes. *)
27 val human : bool ref (** Display human-readable. *)
28 val all : bool ref (** Show all or just active domains. *)
29 val test_files : string list ref (** In test mode (-t) list of files. *)
30 val csv_mode : bool ref (** CSV mode. *)
31 (** State of command line arguments. *)
33 val csv_write : (out_channel -> string list -> unit) option ref
34 (** If virt_df_csv.ml is compiled in then this hook is overridden with
35 a function to write a single line to a CSV file.