qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH v3 01/10] block: Add a 'flags' param to bdrv_{pread,pwrite,pw


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH v3 01/10] block: Add a 'flags' param to bdrv_{pread,pwrite,pwrite_sync}()
Date: Fri, 27 May 2022 13:02:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 5/19/22 17:48, Alberto Faria wrote:
For consistency with other I/O functions, and in preparation to
implement them using generated_co_wrapper.

Callers were updated using this Coccinelle script:

     @@ expression child, offset, buf, bytes; @@
     - bdrv_pread(child, offset, buf, bytes)
     + bdrv_pread(child, offset, buf, bytes, 0)

     @@ expression child, offset, buf, bytes; @@
     - bdrv_pwrite(child, offset, buf, bytes)
     + bdrv_pwrite(child, offset, buf, bytes, 0)

     @@ expression child, offset, buf, bytes; @@
     - bdrv_pwrite_sync(child, offset, buf, bytes)
     + bdrv_pwrite_sync(child, offset, buf, bytes, 0)

Resulting overly-long lines were then fixed by hand.

Signed-off-by: Alberto Faria<afaria@redhat.com>
Reviewed-by: Paolo Bonzini<pbonzini@redhat.com>

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>

--
Best regards,
Vladimir



reply via email to

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