diff --git a/lib/bdev/aio/blockdev_aio.c b/lib/bdev/aio/blockdev_aio.c index e259f9f3b..b871e5300 100644 --- a/lib/bdev/aio/blockdev_aio.c +++ b/lib/bdev/aio/blockdev_aio.c @@ -99,7 +99,7 @@ blockdev_aio_close(struct file_disk *disk) static int64_t blockdev_aio_read(struct file_disk *fdisk, struct spdk_io_channel *ch, - struct blockdev_aio_task *aio_task, void *buf, uint64_t nbytes, off_t offset) + struct blockdev_aio_task *aio_task, void *buf, uint64_t nbytes, uint64_t offset) { struct iocb *iocb = &aio_task->iocb; struct blockdev_aio_io_channel *aio_ch = spdk_io_channel_get_ctx(ch); @@ -129,7 +129,7 @@ blockdev_aio_read(struct file_disk *fdisk, struct spdk_io_channel *ch, static int64_t blockdev_aio_writev(struct file_disk *fdisk, struct spdk_io_channel *ch, struct blockdev_aio_task *aio_task, - struct iovec *iov, int iovcnt, size_t len, off_t offset) + struct iovec *iov, int iovcnt, size_t len, uint64_t offset) { struct iocb *iocb = &aio_task->iocb; struct blockdev_aio_io_channel *aio_ch = spdk_io_channel_get_ctx(ch); diff --git a/lib/bdev/malloc/blockdev_malloc.c b/lib/bdev/malloc/blockdev_malloc.c index da70e0f71..0237d0e6b 100644 --- a/lib/bdev/malloc/blockdev_malloc.c +++ b/lib/bdev/malloc/blockdev_malloc.c @@ -123,7 +123,7 @@ blockdev_malloc_destruct(struct spdk_bdev *bdev) static int64_t blockdev_malloc_read(struct malloc_disk *mdisk, struct spdk_io_channel *ch, struct copy_task *copy_req, - void *buf, uint64_t nbytes, off_t offset) + void *buf, uint64_t nbytes, uint64_t offset) { SPDK_TRACELOG(SPDK_TRACE_MALLOC, "read %lu bytes from offset %#lx to %p\n", nbytes, offset, buf); @@ -135,7 +135,7 @@ blockdev_malloc_read(struct malloc_disk *mdisk, struct spdk_io_channel *ch, static int64_t blockdev_malloc_writev(struct malloc_disk *mdisk, struct spdk_io_channel *ch, struct copy_task *copy_req, - struct iovec *iov, int iovcnt, size_t len, off_t offset) + struct iovec *iov, int iovcnt, size_t len, uint64_t offset) { if ((iovcnt != 1) || (iov->iov_len != len)) return -1; diff --git a/lib/bdev/nvme/blockdev_nvme.c b/lib/bdev/nvme/blockdev_nvme.c index 7c236f2be..16633ecbc 100644 --- a/lib/bdev/nvme/blockdev_nvme.c +++ b/lib/bdev/nvme/blockdev_nvme.c @@ -139,7 +139,7 @@ SPDK_BDEV_MODULE_REGISTER(nvme_library_init, NULL, blockdev_nvme_get_spdk_runnin static int64_t blockdev_nvme_read(struct nvme_blockdev *nbdev, struct spdk_io_channel *ch, struct nvme_blockio *bio, - void *buf, uint64_t nbytes, off_t offset) + void *buf, uint64_t nbytes, uint64_t offset) { struct nvme_io_channel *nvme_ch = spdk_io_channel_get_ctx(ch); int64_t rc; @@ -157,7 +157,7 @@ blockdev_nvme_read(struct nvme_blockdev *nbdev, struct spdk_io_channel *ch, static int64_t blockdev_nvme_writev(struct nvme_blockdev *nbdev, struct spdk_io_channel *ch, struct nvme_blockio *bio, - struct iovec *iov, int iovcnt, size_t len, off_t offset) + struct iovec *iov, int iovcnt, size_t len, uint64_t offset) { struct nvme_io_channel *nvme_ch = spdk_io_channel_get_ctx(ch); int64_t rc;