]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd/fsx: add rbd-wnbd tests
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 4 Nov 2022 10:30:43 +0000 (12:30 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 16 Aug 2023 07:51:44 +0000 (07:51 +0000)
commit9a0a715cb1fceed4121d82d723cd374d8fd85d6d
treed905fb2552b800e6355703f20fde23b864999fb8
parent849757a4626ffbd478de36f20ce99d7ce4d7dbf5
test/librbd/fsx: add rbd-wnbd tests

rbd-wnbd can be used to map rbd images as Windows block devices.

This change will allow exercising rbd-wnbd and the wnbd driver
as opposed to using librbd directly.

One thing to note here is that read and write operations must be
512B aligned. Also, wnbd does not currently support "compare
and write".

For this reason, we'll stick to the basic operations for the time
being.

Note that we're renaming krbd_read/krbd_write to generic_pread
and generic_pwrite, reusing those functions for wnbd operations.
We're also removing the duplicated ggate read/write operations,
using the generic functions instead.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/include/win32/winioctl_compat.h [new file with mode: 0644]
src/test/librbd/fsx.cc