]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/librbd/fsx: don't call posix_memalign() if size is 0
authorIlya Dryomov <idryomov@gmail.com>
Sat, 11 May 2024 08:00:47 +0000 (10:00 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 12 May 2024 12:03:59 +0000 (14:03 +0200)
commit148448033d03bc9b3e8f614ac0ec2a1aae674d26
tree21ffdc02dae035b9e745243bf1622d1b481809fb
parent47ad28fecad34d55cc9565280e09e0a5e72045ee
test/librbd/fsx: don't call posix_memalign() if size is 0

While legal, it's specified as implementation-defined behavior and
newer valgrind throws InvalidSize error on it.

Fixes: https://tracker.ceph.com/issues/65813
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/librbd/fsx.cc