diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-13 18:42:27 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-13 22:09:21 +0100 |
commit | 66477d07e37ffe66cd6fea1105dd92b616d3cd27 (patch) | |
tree | c3c6e382431101f246d2055f24b6e1efad63c33b /src | |
parent | ad752b80d7fa064b7bdd3d4c8d47c95d79265b58 (diff) | |
download | libguestfs-66477d07e37ffe66cd6fea1105dd92b616d3cd27.tar.gz libguestfs-66477d07e37ffe66cd6fea1105dd92b616d3cd27.tar.xz libguestfs-66477d07e37ffe66cd6fea1105dd92b616d3cd27.zip |
New API: Add aug-clear call for clearing an Augeas node.
Diffstat (limited to 'src')
-rw-r--r-- | src/MAX_PROC_NR | 2 | ||||
-rwxr-xr-x | src/generator.ml | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR index 1cf253f9..b4249c47 100644 --- a/src/MAX_PROC_NR +++ b/src/MAX_PROC_NR @@ -1 +1 @@ -238 +239 diff --git a/src/generator.ml b/src/generator.ml index 532aba98..79a10ddf 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1238,7 +1238,12 @@ matches exactly one node, the C<value> is returned."); [], (* XXX Augeas code needs tests. *) "set Augeas path to value", "\ -Set the value associated with C<path> to C<value>."); +Set the value associated with C<path> to C<val>. + +In the Augeas API, it is possible to clear a node by setting +the value to NULL. Due to an oversight in the libguestfs API +you cannot do that with this call. Instead you must use the +C<guestfs_aug_clear> call."); ("aug_insert", (RErr, [String "augpath"; String "label"; Bool "before"]), 21, [Optional "augeas"], [], (* XXX Augeas code needs tests. *) @@ -4468,6 +4473,13 @@ you would call this with pc = 100 which expands the logical volume as much as possible, using all remaining free space in the volume group."); + ("aug_clear", (RErr, [String "augpath"]), 239, [Optional "augeas"], + [], (* XXX Augeas code needs tests. *) + "clear Augeas path", + "\ +Set the value associated with C<path> to C<NULL>. This +is the same as the L<augtool(1)> C<clear> command."); + ] let all_functions = non_daemon_functions @ daemon_functions |