From: Richard W.M. Jones Date: Thu, 28 Oct 2010 12:40:23 +0000 (+0100) Subject: Sys::Guestfs::Lib: deprecate get_partitions (RHBZ#642933). X-Git-Tag: 1.5.25~6 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=756c23997b864aa3e559172c01d247a9a9236b5d;p=libguestfs.git Sys::Guestfs::Lib: deprecate get_partitions (RHBZ#642933). However the code is left since this function is used by virt-v2v amongst others. --- diff --git a/perl/lib/Sys/Guestfs/Lib.pm b/perl/lib/Sys/Guestfs/Lib.pm index 5df6229..317c9b7 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 would not be returned if C -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 instead. =cut