OSDN Git Service

xfs: create libxfs infrastructure
authorDave Chinner <dchinner@redhat.com>
Wed, 25 Jun 2014 04:57:22 +0000 (14:57 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 25 Jun 2014 04:57:22 +0000 (14:57 +1000)
commit69116a1317ce3d2292e062bfb1a22757b95dcd06
treeeae7363c9e70d9364882390b5b4730f49f12c6cd
parentb474c7ae4395ba684e85fde8f55c8cf44a39afaf
xfs: create libxfs infrastructure

To minimise the differences between kernel and userspace code,
split the kernel code into the same structure as the userspace code.
That is, the gneric core functionality of XFS is moved to a libxfs/
directory and treat it as a layering barrier in the XFS code.

This patch introduces the libxfs directory, the build infrastructure
and an initial source and header file to build. The libxfs directory
will contain the header files that are needed to build libxfs - most
of userspace does not care about the location of these header files
as they are accessed indirectly. Hence keeping them inside libxfs
makes it easy to track the changes and script the sync process as
the directory structure will be identical.

To allow this changeover to occur in the kernel code, there are some
temporary infrastructure in the makefiles to grab the header
filesystem from both locations. Once all the files are moved,
modifications will be made in the source code that will make the
need for these include directives go away.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_sb.c [moved from fs/xfs/xfs_sb.c with 100% similarity]
fs/xfs/libxfs/xfs_sb.h [moved from fs/xfs/xfs_sb.h with 100% similarity]