git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generated code for lvresize, resize2fs.
[libguestfs.git]
/
perl
/
lib
/
Sys
/
Guestfs.pm
diff --git
a/perl/lib/Sys/Guestfs.pm
b/perl/lib/Sys/Guestfs.pm
index
0e4dde4
..
62f3e7b
100644
(file)
--- a/
perl/lib/Sys/Guestfs.pm
+++ b/
perl/lib/Sys/Guestfs.pm
@@
-740,6
+740,12
@@
the path to the LV, such as C</dev/VG/LV>.
You can also remove all LVs in a volume group by specifying
the VG name, C</dev/VG>.
You can also remove all LVs in a volume group by specifying
the VG name, C</dev/VG>.
+=item $h->lvresize ($device, $mbytes);
+
+This resizes (expands or shrinks) an existing LVM logical
+volume to C<mbytes>. When reducing, data in the reduced part
+is lost.
+
=item @logvols = $h->lvs ();
List all the logical volumes detected. This is the equivalent
=item @logvols = $h->lvs ();
List all the logical volumes detected. This is the equivalent
@@
-872,6
+878,11
@@
Note that this function cannot correctly handle binary files
as end of line). For those you need to use the C<$h-E<gt>read_file>
function which has a more complex interface.
as end of line). For those you need to use the C<$h-E<gt>read_file>
function which has a more complex interface.
+=item $h->resize2fs ($device);
+
+This resizes an ext2 or ext3 filesystem to match the size of
+the underlying device.
+
=item $h->rm ($path);
Remove the single file C<path>.
=item $h->rm ($path);
Remove the single file C<path>.