]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - mkfs/xfs_mkfs.c
xfsprogs: use common code for multi-disk detection
authorDave Chinner <dchinner@redhat.com>
Tue, 10 May 2016 07:16:06 +0000 (17:16 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 10 May 2016 07:16:06 +0000 (17:16 +1000)
commit4a32b9e928b80001dbda7b9576a96b7cb4a26850
tree570ffd090fda264b750b548dbfc01d81e378534d
parent6aa32b47197828b6d014a6faf9c7450bbc16e66f
xfsprogs: use common code for multi-disk detection

Both xfs_repair and mkfs.xfs need to agree on what is a "multidisk:
configuration - mkfs for determining the AG count of the filesystem,
repair for determining how to automatically parallelise it's
execution. This requires a bunch of common defines that both mkfs
and reapir need to share.

In fact, most of the defines in xfs_mkfs.h could be shared with
other programs (i.e. all the defaults mkfs uses) and so it is
simplest to move xfs_mkfs.h to the shared include directory and add
the new defines to it directly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jan Tulak <jtulak@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/Makefile
include/xfs_multidisk.h [moved from mkfs/xfs_mkfs.h with 88% similarity]
mkfs/Makefile
mkfs/maxtrres.c
mkfs/proto.c
mkfs/xfs_mkfs.c
repair/xfs_repair.c