qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qed: make qed_alloc_clusters round up offset to


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] qed: make qed_alloc_clusters round up offset to nearest cluster
Date: Tue, 23 Aug 2011 14:38:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

Am 16.08.2011 01:16, schrieb Devin Nakamura:
> Signed-off-by: Devin Nakamura <address@hidden>
> ---
>  block/qed.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/block/qed.c b/block/qed.c
> index 333f067..9a1e49c 100644
> --- a/block/qed.c
> +++ b/block/qed.c
> @@ -263,6 +263,8 @@ static int qed_read_string(BlockDriverState *file, 
> uint64_t offset, size_t n,
>   */
>  static uint64_t qed_alloc_clusters(BDRVQEDState *s, unsigned int n)
>  {
> +    s->file_size =  qed_start_of_cluster(s, s->file_size +
> +                                         s->header.cluster_size - 1);
>      uint64_t offset = s->file_size;
>      s->file_size += n * s->header.cluster_size;
>      return offset;

Stefan, Devin, have you come to a conclusion about this patch?

Kevin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]