summaryrefslogtreecommitdiffstats
path: root/generator/actions.ml
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-04 08:58:21 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-04 10:02:53 +0100
commit4ed981bd5f0a158db3cfb87794628806bf00d443 (patch)
tree1f748577677c4a211a370fe0972b947c270196bd /generator/actions.ml
parente388c4f3fd26c8756ac33e94b02f8435a0179bc1 (diff)
downloadlibguestfs-4ed981bd5f0a158db3cfb87794628806bf00d443.tar.gz
libguestfs-4ed981bd5f0a158db3cfb87794628806bf00d443.tar.xz
libguestfs-4ed981bd5f0a158db3cfb87794628806bf00d443.zip
New APIs: disk-virtual-size and disk-has-backing-file.
Diffstat (limited to 'generator/actions.ml')
-rw-r--r--generator/actions.ml22
1 files changed, 22 insertions, 0 deletions
diff --git a/generator/actions.ml b/generator/actions.ml
index 65f38a24..5e85164d 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -2286,6 +2286,28 @@ circumstances. See L<guestfs(3)/CVE-2010-3851>.
See also: L<guestfs(3)/DISK IMAGE FORMATS>" };
+ { defaults with
+ name = "disk_virtual_size";
+ style = RInt64 "size", [String "filename"], [];
+ shortdesc = "return virtual size of a disk";
+ longdesc = "\
+Detect and return the virtual size in bytes of the disk image
+called C<filename>.
+
+Note that detecting disk features can be insecure under some
+circumstances. See L<guestfs(3)/CVE-2010-3851>." };
+
+ { defaults with
+ name = "disk_has_backing_file";
+ style = RBool "backingfile", [String "filename"], [];
+ shortdesc = "return whether disk has a backing file";
+ longdesc = "\
+Detect and return whether the disk image C<filename> has a
+backing file.
+
+Note that detecting disk features can be insecure under some
+circumstances. See L<guestfs(3)/CVE-2010-3851>." };
+
]
(* daemon_functions are any functions which cause some action