v.25.10Improvement

Fix rollbacks of unlink/rename/removeRecursive/removeDirectory/etc operations and also

Fix rollbacks of unlink/rename/removeRecursive/removeDirectory/etc operations and also hardlink counts in any possible workloads for metadata from disk transactions, and simplifies the interfaces to make them more generic so that they can be reused in other meta stores. #87358 (Mikhail Artemenko).
Fix rollback handling for file system metadata operations and unify interfaces for meta stores.

Why it matters

This feature addresses issues in the rollback mechanism of file operations such as unlink, rename, removeRecursive, and removeDirectory within metadata transactions. It also corrects hardlink count updates to ensure accuracy across all workloads. Additionally, it simplifies and generalizes the interfaces involved so they can be reused by other metadata stores, improving code maintainability and reliability when managing metadata on disk.

How to use it

This fix is applied internally to the metadata transaction management and file operation logic. Users automatically benefit from more reliable rollback behavior and accurate hardlink tracking without requiring any additional configuration or changes to existing workflows.