Hi all, This series fixes some bugs that I and others have found in the userspace tools. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. This has been running on the djcloud for months with no problems. Enjoy! Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=random-fixes xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=random-fixes fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=random-fixes --- copy/xfs_copy.c | 10 +++-- db/block.c | 14 ++++++- db/io.c | 35 +++++++++++++++- db/io.h | 3 + include/libxfs.h | 1 libfrog/Makefile | 1 libfrog/div64.h | 96 +++++++++++++++++++++++++++++++++++++++++++++ libxfs/defer_item.c | 7 +++ libxfs/libxfs_priv.h | 77 ------------------------------------ man/man8/xfs_mdrestore.8 | 6 ++- man/man8/xfs_metadump.8 | 7 ++- mdrestore/xfs_mdrestore.c | 46 +++++++++++++--------- 12 files changed, 198 insertions(+), 105 deletions(-) create mode 100644 libfrog/div64.h