summaryrefslogtreecommitdiffstats
path: root/guestfs-actions.pod
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-13 23:58:33 +0100
committerRichard Jones <rjones@redhat.com>2009-04-13 23:58:33 +0100
commitadefe14e308a0f8cf73f9c60693a3dbbded157b9 (patch)
treecc1ecd798dd05c422ddcf99c1cdbef307aacb8fd /guestfs-actions.pod
parent42283403886da648bb239177369aa65c0a659255 (diff)
downloadlibguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.tar.gz
libguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.tar.xz
libguestfs-adefe14e308a0f8cf73f9c60693a3dbbded157b9.zip
Generated files for file(1) command.
Diffstat (limited to 'guestfs-actions.pod')
-rw-r--r--guestfs-actions.pod16
1 files changed, 16 insertions, 0 deletions
diff --git a/guestfs-actions.pod b/guestfs-actions.pod
index 310db2e4..32c6d672 100644
--- a/guestfs-actions.pod
+++ b/guestfs-actions.pod
@@ -312,6 +312,22 @@ See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>.
This function returns a C truth value on success or -1 on error.
+=head2 guestfs_file
+
+ char *guestfs_file (guestfs_h *handle,
+ const char *path);
+
+This call uses the standard L<file(1)> command to determine
+the type or contents of the file. This also works on devices,
+for example to find out whether a partition contains a filesystem.
+
+The exact command which runs is C<file -bsL path>. Note in
+particular that the filename is not prepended to the output
+(the C<-b> option).
+
+This function returns a string or NULL on error.
+I<The caller must free the returned string after use>.
+
=head2 guestfs_get_autosync
int guestfs_get_autosync (guestfs_h *handle);