summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-09 13:42:13 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-09 14:52:39 +0100
commit4ba6aa3eaeb112a1468ad9189120d12e1df23709 (patch)
treee2606f99e5d6f69eaeacae3595e24755966feca5 /generator
parent4f671c829e33a218309f332621802d8d6f8d5040 (diff)
downloadlibguestfs-4ba6aa3eaeb112a1468ad9189120d12e1df23709.tar.gz
libguestfs-4ba6aa3eaeb112a1468ad9189120d12e1df23709.tar.xz
libguestfs-4ba6aa3eaeb112a1468ad9189120d12e1df23709.zip
New API: filesystem-available: tests for filesystem availability.
This also creates an internal filesystem_available function within the daemon.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml21
1 files changed, 20 insertions, 1 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 4dc46385..d88d54f2 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -5325,7 +5325,9 @@ versions of libguestfs all you could do would be to speculatively
execute a command to find out if the daemon implemented it.
See also C<guestfs_version>.
-=back");
+=back
+
+See also C<guestfs_filesystem_available>.");
("dd", (RErr, [Dev_or_Path "src"; Dev_or_Path "dest"], []), 217, [DeprecatedBy "copy_device_to_device"],
[InitScratchFS, Always, TestOutputBuffer (
@@ -7241,6 +7243,23 @@ a btrfs filesystem.");
Used to check a btrfs filesystem, C<device> is the device file where the
filesystem is stored.");
+ ("filesystem_available", (RBool "fsavail", [String "filesystem"], []), 333, [],
+ [],
+ "check if filesystem is available",
+ "\
+Check whether libguestfs supports the named filesystem.
+The argument C<filesystem> is a filesystem name, such as
+C<ext3>.
+
+You must call C<guestfs_launch> before using this command.
+
+This is mainly useful as a negative test. If this returns true,
+it doesn't mean that a particular filesystem can be mounted,
+since filesystems can fail for other reasons such as it being
+a later version of the filesystem, or having incompatible features.
+
+See also C<guestfs_available>, L<guestfs(3)/AVAILABILITY>.");
+
]
let all_functions = non_daemon_functions @ daemon_functions