[Libguestfs] [PATCH v2 03/11] resize: updated find_partition to support logical partition

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Wed May 20 10:51:29 UTC 2015


As we splited the original partitions list to
partitions and logical_partitions.

Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
---
 resize/resize.ml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/resize/resize.ml b/resize/resize.ml
index d7a8ce1..92f7304 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -616,6 +616,8 @@ read the man page virt-resize(1).
     let hash = Hashtbl.create 13 in
     List.iter (fun ({ p_name = name } as p) -> Hashtbl.add hash name p)
       partitions;
+    List.iter (fun ({ p_name = name } as p) -> Hashtbl.add hash name p)
+      logical_partitions;
     fun ~option name ->
       let name =
         if String.length name < 5 || String.sub name 0 5 <> "/dev/" then
-- 
2.1.0




More information about the Libguestfs mailing list