Hi all, Port kernel libxfs code to userspace. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. Comments and questions are, as always, welcome. xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=libxfs-sync-6.16 --- Commits in this patchset: * xfs: add helpers to compute transaction reservation for finishing intent items * xfs: allow block allocator to take an alignment hint * xfs: commit CoW-based atomic writes atomically * libxfs: add helpers to compute log item overhead * xfs: add xfs_calc_atomic_write_unit_max() * xfs: allow sysadmins to specify a maximum atomic write limit at mount time --- include/platform_defs.h | 14 ++ include/xfs_trace.h | 3 libxfs/defer_item.h | 14 ++ libxfs/xfs_bmap.h | 6 + libxfs/xfs_trans_resv.h | 25 +++ libxfs/defer_item.c | 51 +++++++ libxfs/xfs_bmap.c | 5 + libxfs/xfs_log_rlimit.c | 4 + libxfs/xfs_trans_resv.c | 339 +++++++++++++++++++++++++++++++++++++++++++---- 9 files changed, 429 insertions(+), 32 deletions(-)