X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_actions.ml;h=2f9fb71d743f7b8d8b909c2cef67a0931436cc4b;hb=b62e154d97f727f322f954060c67b6ba14cb1925;hp=5624dec10f02ce22635d3b069a0c7901ff538313;hpb=0710326ac5f1a06cf1dc3500617d04cf4cba5631;p=libguestfs.git diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 5624dec..2f9fb71 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -3402,7 +3402,7 @@ This command runs the C command to report disk space used. This command is mostly useful for interactive sessions. It is I intended that you try to parse the output string. -Use C from programs."); +Use C from programs."); ("df_h", (RString "output", [], []), 126, [], [], (* XXX Tricky to test because it depends on the exact format @@ -3415,7 +3415,7 @@ in human-readable format. This command is mostly useful for interactive sessions. It is I intended that you try to parse the output string. -Use C from programs."); +Use C from programs."); ("du", (RInt64 "sizekb", [Pathname "path"], []), 127, [], [InitISOFS, Always, TestOutputInt ( @@ -5633,6 +5633,46 @@ the requested cluster size. =back"); + ("getxattr", (RBufferOut "xattr", [Pathname "path"; String "name"], []), 279, [Optional "linuxxattrs"], + [], + "get a single extended attribute", + "\ +Get a single extended attribute from file C named C. +This call follows symlinks. If you want to lookup an extended +attribute for the symlink itself, use C. + +Normally it is better to get all extended attributes from a file +in one go by calling C. However some Linux +filesystem implementations are buggy and do not provide a way to +list out attributes. For these filesystems (notably ntfs-3g) +you have to know the names of the extended attributes you want +in advance and call this function. + +Extended attribute values are blobs of binary data. If there +is no extended attribute named C, this returns an error. + +See also: C, C, L."); + + ("lgetxattr", (RBufferOut "xattr", [Pathname "path"; String "name"], []), 280, [Optional "linuxxattrs"], + [], + "get a single extended attribute", + "\ +Get a single extended attribute from file C named C. +If C is a symlink, then this call returns an extended +attribute from the symlink. + +Normally it is better to get all extended attributes from a file +in one go by calling C. However some Linux +filesystem implementations are buggy and do not provide a way to +list out attributes. For these filesystems (notably ntfs-3g) +you have to know the names of the extended attributes you want +in advance and call this function. + +Extended attribute values are blobs of binary data. If there +is no extended attribute named C, this returns an error. + +See also: C, C, L."); + ] let all_functions = non_daemon_functions @ daemon_functions