]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/libcephfs: skip dirent inode check on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 7 Sep 2022 07:40:58 +0000 (07:40 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 10 Nov 2022 07:38:13 +0000 (09:38 +0200)
commit98eef6229c1c69037974fe49cf3be5cfbbbcb289
tree39b8e7876f312a19030e65f09c91df0183d7c1b7
parent13c11b681bd05fec2dabc3f35e9adca90902f207
test/libcephfs: skip dirent inode check on Windows

The LibCephFS.DirLs test calls ceph_readdirplus_r and expects
the returning dirent.d_ino value to match the ceph_statx.stx_ino
inode.

The issue is that on Windows, "dirent" uses long (4B) inodes, which
isn't large enough to hold the ceph inodes (uint64_t).

For now, we'll drop this specific assertion. On Windows, the
ceph_statx inode should be used instead of the dirent one.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/test/libcephfs/test.cc