diff mbox series

[2/2] fstests: remove DMAPI support from build system

Message ID 161526479532.1213071.1569165278701497636.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series fstests: remove obsolete DMAPI tests | expand

Commit Message

Darrick J. Wong March 9, 2021, 4:39 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Since we've axed all the DMAPI tests, get rid of the build system
support too.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 Makefile                   |    2 +-
 build/rpm/xfstests.spec.in |    2 +-
 common/rc                  |    1 -
 configure.ac               |    1 -
 include/builddefs.in       |    1 -
 m4/Makefile                |    1 -
 m4/package_dmapidev.m4     |   27 ---------------------------
 tools/auto-qa              |    4 ++--
 8 files changed, 4 insertions(+), 35 deletions(-)
 delete mode 100644 m4/package_dmapidev.m4
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 48927bcd..86a2d399 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@  TOOL_SUBDIRS = ltp src m4 common
 export TESTS_DIR = tests
 SUBDIRS = $(LIB_SUBDIRS) $(TOOL_SUBDIRS) $(TESTS_DIR)
 
-default: include/builddefs $(DMAPI_MAKEFILE)
+default: include/builddefs
 ifeq ($(HAVE_BUILDDEFS), no)
 	$(Q)$(MAKE) $(MAKEOPTS) $@
 else
diff --git a/build/rpm/xfstests.spec.in b/build/rpm/xfstests.spec.in
index 0a8c896b..e0f7c5f9 100644
--- a/build/rpm/xfstests.spec.in
+++ b/build/rpm/xfstests.spec.in
@@ -17,7 +17,7 @@  Group: System Environment/Base
 
 %description
 The XFS regression test suite.  Also includes some support for
-acl, attr, dmapi, udf, and nfs testing.  Contains around 200 specific tests
+acl, attr, udf, and nfs testing.  Contains around 200 specific tests
 for userspace & kernelspace.
 
 %prep
diff --git a/common/rc b/common/rc
index 6983bf6a..c0a791cb 100644
--- a/common/rc
+++ b/common/rc
@@ -277,7 +277,6 @@  _mount_ops_filter()
     local params="$*"
     local last_index=$(( $# - 1 ))
 
-    #get mount point to handle dmapi mtpt option correctly
     [ $last_index -gt 0 ] && shift $last_index
     local fs_escaped=$1
 
diff --git a/configure.ac b/configure.ac
index e5771285..27d57d63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,6 @@  AC_PACKAGE_NEED_ACLINIT_LIBACL
 AC_PACKAGE_WANT_GDBM
 AC_PACKAGE_WANT_AIO
 AC_PACKAGE_WANT_URING
-AC_PACKAGE_WANT_DMAPI
 AC_PACKAGE_WANT_LINUX_FIEMAP_H
 AC_PACKAGE_WANT_FALLOCATE
 AC_PACKAGE_WANT_OPEN_BY_HANDLE_AT
diff --git a/include/builddefs.in b/include/builddefs.in
index 6893d598..471e651c 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -63,7 +63,6 @@  HAVE_AIO = @have_aio@
 HAVE_URING = @have_uring@
 HAVE_FALLOCATE = @have_fallocate@
 HAVE_OPEN_BY_HANDLE_AT = @have_open_by_handle_at@
-HAVE_DMAPI = @have_dmapi@
 HAVE_FIEMAP = @have_fiemap@
 HAVE_FALLOCATE = @have_fallocate@
 HAVE_COPY_FILE_RANGE = @have_copy_file_range@
diff --git a/m4/Makefile b/m4/Makefile
index 5d9c5896..f3f195c5 100644
--- a/m4/Makefile
+++ b/m4/Makefile
@@ -10,7 +10,6 @@  LSRCFILES = \
 	package_acldev.m4 \
 	package_aiodev.m4 \
 	package_gdbmdev.m4 \
-	package_dmapidev.m4 \
 	package_globals.m4 \
 	package_libcdev.m4 \
 	package_liburing.m4 \
diff --git a/m4/package_dmapidev.m4 b/m4/package_dmapidev.m4
deleted file mode 100644
index 6a7257ee..00000000
--- a/m4/package_dmapidev.m4
+++ /dev/null
@@ -1,27 +0,0 @@ 
-AC_DEFUN([AC_PACKAGE_NEED_XFS_DMAPI_H],
-  [ AC_CHECK_HEADERS([xfs/dmapi.h])
-    if test "$ac_cv_header_xfs_dmapi_h" != yes; then
-        echo
-        echo 'FATAL ERROR: could not find a valid DMAPI library header.'
-        echo 'Install the data migration API (dmapi) development package.'
-        echo 'Alternatively, run "make install-dev" from the dmapi source.'
-        exit 1
-    fi
-  ])
-
-AC_DEFUN([AC_PACKAGE_WANT_DMAPI],
-  [ AC_CHECK_LIB(dm, dm_make_handle, [ have_dmapi=true ], [
-	have_dmapi=false
-        echo
-        echo 'WARNING: could not find a valid DMAPI base library.'
-	echo 'If you want DMAPI support please install the data migration'
-	echo 'API (dmapi) library package. Alternatively, run "make install"'
-	echo 'from the dmapi source.'
-	echo
-    ])
-    libdm="-ldm"
-    test -f ${libexecdir}${libdirsuffix}/libdm.la && \
-	libdm="${libexecdir}${libdirsuffix}/libdm.la"
-    AC_SUBST(libdm)
-    AC_SUBST(have_dmapi)
-  ])
diff --git a/tools/auto-qa b/tools/auto-qa
index 1d0cc07c..1beb2835 100755
--- a/tools/auto-qa
+++ b/tools/auto-qa
@@ -308,7 +308,7 @@  do
 
 	*cleantools)
 	    # we need to configure or else we might fail to clean
-	    for pkg in attr acl xfsprogs dmapi xfsdump xfstests
+	    for pkg in attr acl xfsprogs xfsdump xfstests
 	    do
 		[ -d $WORKAREA/$pkg ] || continue
 		cd $WORKAREA/$pkg
@@ -321,7 +321,7 @@  do
 
 	*buildtools)
 	    _log "	*** build and install tools"
-	    for pkg in attr acl xfsprogs dmapi xfsdump xfstests 
+	    for pkg in attr acl xfsprogs xfsdump xfstests 
 	    do
 		[ -d $WORKAREA/$pkg ] || continue
 		cd $WORKAREA/$pkg