diff options
author | Christoph Hellwig <hch@lst.de> | 2024-02-15 07:54:19 +0100 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2024-03-13 08:48:37 +0100 |
commit | 25c2a19818fd8cd2e44d6230ef1e40efecd5bb5f (patch) | |
tree | 38faa26678f1cb42b0b55155585564aea4df32c2 | |
parent | 47f7c044534b69c9d28b14cfcd02088292383532 (diff) | |
download | xfsprogs-dev-25c2a19818fd8cd2e44d6230ef1e40efecd5bb5f.tar.gz |
configure: don't check for fsetxattr
fsetxattr has been supported since Linux 2.4 and glibc 2.3.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | fsr/xfs_fsr.c | 2 | ||||
-rw-r--r-- | include/builddefs.in | 4 | ||||
-rw-r--r-- | m4/package_libcdev.m4 | 13 |
4 files changed, 0 insertions, 20 deletions
diff --git a/configure.ac b/configure.ac index 296eb3c1f9..09ffe52c8b 100644 --- a/configure.ac +++ b/configure.ac @@ -164,7 +164,6 @@ AC_PACKAGE_NEED_RCU_INIT AC_HAVE_PWRITEV2 AC_HAVE_COPY_FILE_RANGE -AC_HAVE_FSETXATTR AC_NEED_INTERNAL_FSXATTR AC_NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG AC_NEED_INTERNAL_FSCRYPT_POLICY_V2 diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index 12fffbd81f..3077d8f4ef 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -954,7 +954,6 @@ fsr_setup_attr_fork( int tfd, struct xfs_bstat *bstatp) { -#ifdef HAVE_FSETXATTR struct xfs_fd txfd = XFS_FD_INIT(tfd); struct stat tstatbuf; int i; @@ -1119,7 +1118,6 @@ out: if (dflag && diff) fsrprintf(_("failed to match fork offset\n"));; -#endif /* HAVE_FSETXATTR */ return 0; } diff --git a/include/builddefs.in b/include/builddefs.in index d6ff5960a6..a42c1340a3 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -92,7 +92,6 @@ HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@ HAVE_PWRITEV2 = @have_pwritev2@ HAVE_COPY_FILE_RANGE = @have_copy_file_range@ -HAVE_FSETXATTR = @have_fsetxattr@ NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@ NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG = @need_internal_fscrypt_add_key_arg@ NEED_INTERNAL_FSCRYPT_POLICY_V2 = @need_internal_fscrypt_policy_v2@ @@ -125,9 +124,6 @@ DEPENDFLAGS = -D__linux__ ifeq ($(HAVE_MNTENT),yes) PCFLAGS+= -DHAVE_MNTENT endif -ifeq ($(HAVE_FSETXATTR),yes) -PCFLAGS+= -DHAVE_FSETXATTR -endif ifeq ($(NEED_INTERNAL_FSXATTR),yes) PCFLAGS+= -DOVERRIDE_SYSTEM_FSXATTR endif diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index dd04be5f01..ff0e837524 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -36,19 +36,6 @@ syscall(__NR_copy_file_range, 0, 0, 0, 0, 0, 0); ]) # -# Check if we have a fsetxattr call -# -AC_DEFUN([AC_HAVE_FSETXATTR], - [ AC_CHECK_DECL([fsetxattr], - have_fsetxattr=yes, - [], - [#include <sys/types.h> - #include <sys/xattr.h>] - ) - AC_SUBST(have_fsetxattr) - ]) - -# # Check if we need to override the system struct fsxattr with # the internal definition. This /only/ happens if the system # actually defines struct fsxattr /and/ the system definition |