[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



On Wed, May 20, 2015 at 06:51:29AM -0400, Chen Hanxiao wrote:
> As we splited the original partitions list to
> partitions and logical_partitions.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao 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

If we're going to group these patches together, this should be merged
into the previous patch.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]