OSDN Git Service

block: Add a 'flags' param to blk_pread()
authorAlberto Faria <afaria@redhat.com>
Tue, 5 Jul 2022 16:15:10 +0000 (17:15 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 12 Jul 2022 10:14:56 +0000 (12:14 +0200)
commit3b35d4542c8537a9269f6372df531ced6c960084
tree0a59e4957fa7193db852233956f77515e37a2c41
parentbf5b16fa401633475d21d69c66532f5b29e8433d
block: Add a 'flags' param to blk_pread()

For consistency with other I/O functions, and in preparation to
implement it using generated_co_wrapper.

Callers were updated using this Coccinelle script:

    @@ expression blk, offset, buf, bytes; @@
    - blk_pread(blk, offset, buf, bytes)
    + blk_pread(blk, offset, buf, bytes, 0)

It had no effect on hw/block/nand.c, presumably due to the #if, so that
file was updated manually.

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: Greg Kurz <groug@kaod.org>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220705161527.1054072-3-afaria@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
27 files changed:
block.c
block/block-backend.c
block/commit.c
block/export/fuse.c
hw/arm/allwinner-h3.c
hw/arm/aspeed.c
hw/block/block.c
hw/block/fdc.c
hw/block/hd-geometry.c
hw/block/m25p80.c
hw/block/nand.c
hw/block/onenand.c
hw/ide/atapi.c
hw/misc/mac_via.c
hw/misc/sifive_u_otp.c
hw/nvram/eeprom_at24c.c
hw/nvram/spapr_nvram.c
hw/nvram/xlnx-bbram.c
hw/nvram/xlnx-efuse.c
hw/ppc/pnv_pnor.c
hw/sd/sd.c
include/sysemu/block-backend-io.h
migration/block.c
nbd/server.c
qemu-img.c
qemu-io-cmds.c
tests/unit/test-block-iothread.c