diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-10-28 13:40:23 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-10-28 15:48:16 +0100 |
commit | 756c23997b864aa3e559172c01d247a9a9236b5d (patch) | |
tree | be81ce0f1f3fb59b432770a19da2131682fa7ff9 /perl | |
parent | f30210cba89763a32cfbcbfd68ccfcec8d5300e4 (diff) | |
download | libguestfs-756c23997b864aa3e559172c01d247a9a9236b5d.tar.gz libguestfs-756c23997b864aa3e559172c01d247a9a9236b5d.tar.xz libguestfs-756c23997b864aa3e559172c01d247a9a9236b5d.zip |
Sys::Guestfs::Lib: deprecate get_partitions (RHBZ#642933).
However the code is left since this function is used
by virt-v2v amongst others.
Diffstat (limited to 'perl')
-rw-r--r-- | perl/lib/Sys/Guestfs/Lib.pm | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 5df62292..317c9b7b 100644 --- a/perl/lib/Sys/Guestfs/Lib.pm +++ b/perl/lib/Sys/Guestfs/Lib.pm @@ -285,16 +285,9 @@ sub feature_available { =head2 get_partitions - @partitions = get_partitions ($g); - -This function takes an open libguestfs handle C<$g> and returns all -partitions and logical volumes found on it. - -What is returned is everything that could contain a filesystem (or -swap). Physical volumes are not normally included from the list -except if they contain a filesystem directly. Nor are devices which -are partitioned (eg. C</dev/sda> would not be returned if C</dev/sda1> -exists). +This function is deprecated. It will not be updated in future +versions of libguestfs. New code should not use this function. Use +the core API function L<Sys::Guestfs(3)/list_filesystems> instead. =cut |