]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/lirbd/fsx: fix Windows issues
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 1 Nov 2022 14:17:22 +0000 (16:17 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 11 Aug 2023 11:33:10 +0000 (11:33 +0000)
commit849757a4626ffbd478de36f20ce99d7ce4d7dbf5
treeb42db0c132d8aa2082f4a7710db0eee67e218c16
parent14d5c7cf8e3440a36eb980b0bfa632baad798f42
test/lirbd/fsx: fix Windows issues

There are a few more issues that need to be addressed in order to
run this test on Windows:

* aligned_free (compat.h wrapper) needs to be used after allocating
  memory using posix_memalign, "free" causes a crash on Windows
* long (4B) can't store x64 pointers on Windows, we'll use
  uintptr_t instead.
* use O_BINARY when opening files, otherwise certain characters
  get translated (e.g. LF to CRLF).

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