Repository navigation
tentacle: common/frag: properly convert frag_t to net/store endianness - #66540
Conversation
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 5f1a893)
Of particular interest is the CPU architecture and endianness. Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit fa4078a)
The MDS/client are already accidentally doing the right thing unless they are running on a big-endian machine. Credit to Venky Shankar for originally hypothesizing an endianness issue with the frag_t. Fixes: https://tracker.ceph.com/issues/73792 Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 9e3837c)
There's better tooling for this now and we can avoid magic numbers. Fixes: https://tracker.ceph.com/issues/73792 Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 647de21)
Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 4fb5ad4) Conflicts: src/common/frag.cc: missing test instance refactor src/mds/mdstypes.cc: missing test instance refactor
Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 1d526c5)
Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 7fdf680)
If a big-endian MDS writes frag_t values into the metadata pool, these will persist and confuse the MDS after it tries properly parsing them as little-endian. Fortunately detecting this situation is fairly easy as we restrict the number of bits and the number of bits restricts the mask value. Fixes: https://tracker.ceph.com/issues/73792 Signed-off-by: Patrick Donnelly <[email protected]> (cherry picked from commit 6bf91e4)
|
jenkins test make check |
|
This PR is under test in https://tracker.ceph.com/issues/74910. |
|
|
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
backport tracker: https://tracker.ceph.com/issues/74115
backport of #66199
parent tracker: https://tracker.ceph.com/issues/73792
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh