[PATCHSET v2.0 01/17] xfsprogs: hoist inode operations to libxfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Add libxfs code from the kernel from the inode refactoring, then fix up
xfs_repair and mkfs to use library functions instead of open-coding
inode (re)creation.

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=inode-refactor

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=inode-refactor
---
 configure.ac             |    1 
 db/iunlink.c             |  128 +-------
 db/namei.c               |   23 -
 include/builddefs.in     |    1 
 include/libxfs.h         |    1 
 include/xfs_inode.h      |   82 ++++-
 include/xfs_mount.h      |    1 
 include/xfs_trace.h      |    7 
 libxfs/Makefile          |    8 +
 libxfs/inode.c           |  280 ++++++++++++++++++
 libxfs/iunlink.c         |  163 ++++++++++
 libxfs/iunlink.h         |   24 ++
 libxfs/libxfs_api_defs.h |    9 +
 libxfs/libxfs_priv.h     |   52 +++
 libxfs/rdwr.c            |   95 ------
 libxfs/util.c            |  333 +--------------------
 libxfs/xfs_bmap.c        |   42 +++
 libxfs/xfs_bmap.h        |    3 
 libxfs/xfs_dir2.c        |  637 +++++++++++++++++++++++++++++++++++++++++
 libxfs/xfs_dir2.h        |   48 +++
 libxfs/xfs_ialloc.c      |   15 +
 libxfs/xfs_inode_util.c  |  720 ++++++++++++++++++++++++++++++++++++++++++++++
 libxfs/xfs_inode_util.h  |   71 +++++
 libxfs/xfs_shared.h      |    7 
 libxfs/xfs_trans_inode.c |    2 
 m4/package_libcdev.m4    |   15 +
 mkfs/proto.c             |  100 +++++-
 repair/phase6.c          |  224 ++++----------
 28 files changed, 2347 insertions(+), 745 deletions(-)
 create mode 100644 libxfs/inode.c
 create mode 100644 libxfs/iunlink.c
 create mode 100644 libxfs/iunlink.h
 create mode 100644 libxfs/xfs_inode_util.c
 create mode 100644 libxfs/xfs_inode_util.h





[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux