]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: In BlueFS::truncate accept wierd alloc_unit
authorAdam Kupczyk <akupczyk@ibm.com>
Tue, 11 Mar 2025 10:52:15 +0000 (10:52 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 5 Jun 2025 08:55:39 +0000 (08:55 +0000)
commit9832d7666439903edd11a20b1c6ae20de66dd9e4
tree87a85e14fdcf35489abb70651358ef04e23da3f9
parent6968714aba04a44bc88d98cc32e29a84eb17a890
os/bluestore: In BlueFS::truncate accept wierd alloc_unit

The alignment of extents might not reflect current alloc_unit[bdev].
It might be caused be either fallback to alternate AU size for SLOW,
or change of allocation unit in DB or WAL.
In such cases, truncation just leaves extent untouched.

Fixes: https://tracker.ceph.com/issues/71534
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 0da7a2a58c207b97c9bcf4a1dfcd9d09f0e9b954)
src/os/bluestore/BlueFS.cc