From: Richard W.M. Jones Date: Tue, 17 May 2011 19:57:56 +0000 (+0100) Subject: Document that guestfs_file output depends on file(1) command. X-Git-Tag: 1.8.8~20 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4ff259db4661c1ae40f3656d1f2d5d5962a1b714;p=libguestfs.git Document that guestfs_file output depends on file(1) command. And therefore practically it cannot be part of the ABI since the output of file(1) itself changes from time to time. (cherry picked from commit ef6f877b9df261fad1fbf361b8ce7af1055dfbb7) --- diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index cf6907c..1ca4607 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -2039,15 +2039,12 @@ The exact command which runs is C. Note in particular that the filename is not prepended to the output (the C<-b> option). -This command can also be used on C devices -(and partitions, LV names). You can for example use this -to determine if a device contains a filesystem, although -it's usually better to use C. - -If the C does not begin with C then -this command only works for the content of regular files. -For other file types (directory, symbolic link etc) it -will just return the string C etc."); +The output depends on the output of the underlying L +command and it can change in future in ways beyond our control. +In other words, the output is not guaranteed by the ABI. + +See also: L, C, C, +C, C (etc)."); ("command", (RString "output", [StringList "arguments"], []), 50, [ProtocolLimitWarning], [InitScratchFS, Always, TestOutput (