Hi folks,
This series brings the xfsprogs libxfs code in sync with what is
currently in the kernel for-next branch. This is aimed at the
xfsprogs for-next branch so that Darrick can use this as the base
for his rmap/reflink xfsprogs tree.
The only "interesting" thing in this series is the xfs_icdinode
modifications. I've made the structures similar to the kernel
so the same macros can be used, and jumped one step ahead of the
kernel by adding XFS_ISREG/XFS_ISDIR wrappers to keep the userspace
conversions simple.
Overall, it turned out ot be a lot simpler than I though it would
be, and points to the general direction that needs to be taken here:
use the xfs_dinode for anythign futzing directly with on disk
inodes, use the xfs_inode for everything else. I also noticed a
coupl eof good opportunites for factoring, such as the repeated
copy/paste of inode allocation and initialisation code.
Comments welcome!
-Dave.
|