X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=79a10ddf0f2eebcd20a78d4799da424b2f858227;hb=66477d07e37ffe66cd6fea1105dd92b616d3cd27;hp=535c412b23c2bd1f80963a31ad22f3770c6dd859;hpb=540da0bc1999deda670e846b8db7291826a1a728;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 535c412..79a10dd 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1238,7 +1238,12 @@ matches exactly one node, the C is returned."); [], (* XXX Augeas code needs tests. *) "set Augeas path to value", "\ -Set the value associated with C to C."); +Set the value associated with C to C. + +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 call."); ("aug_insert", (RErr, [String "augpath"; String "label"; Bool "before"]), 21, [Optional "augeas"], [], (* XXX Augeas code needs tests. *) @@ -4453,6 +4458,28 @@ This call computes the MD5, SHAx or CRC checksum of the contents of the device named C. For the types of checksums supported see the C command."); + ("lvresize_free", (RErr, [Device "lv"; Int "percent"]), 238, [Optional "lvm2"], + [InitNone, Always, TestRun ( + [["part_disk"; "/dev/sda"; "mbr"]; + ["pvcreate"; "/dev/sda1"]; + ["vgcreate"; "VG"; "/dev/sda1"]; + ["lvcreate"; "LV"; "VG"; "10"]; + ["lvresize_free"; "/dev/VG/LV"; "100"]])], + "expand an LV to fill free space", + "\ +This expands an existing logical volume C so that it fills +C% of the remaining free space in the volume group. Commonly +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 to C. This +is the same as the L C command."); + ] let all_functions = non_daemon_functions @ daemon_functions