From b762461d04d1e81073a894b0ce72c2b395069fef Mon Sep 17 00:00:00 2001 From: Martin Cermak Date: Fri, 5 Jan 2024 17:39:00 +0100 Subject: [PATCH] testsuite: Drop ancient rhel6-era nfsservctl.c syscall test --- testsuite/systemtap.syscall/nfsservctl.c | 58 ------------------------ 1 file changed, 58 deletions(-) delete mode 100644 testsuite/systemtap.syscall/nfsservctl.c diff --git a/testsuite/systemtap.syscall/nfsservctl.c b/testsuite/systemtap.syscall/nfsservctl.c deleted file mode 100644 index 7f67fd4e9..000000000 --- a/testsuite/systemtap.syscall/nfsservctl.c +++ /dev/null @@ -1,58 +0,0 @@ -/* COVERAGE: nfsservctl */ - -#define _GNU_SOURCE -#include -#include -#include -#include -#include -#include -#include - -// Note that since linux 3.1, the nfsservctl() syscall no longer exists. -// RHEL7 systems with kernel-headers-3.10.0-229.el7 define __NR_nfsservctl -// but do not have linux/nfsd/syscall.h. - -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) -#undef __NR_nfsservctl -#endif - -#ifdef __NR_nfsservctl -#include -#endif - -int main() -{ -#ifdef __NR_nfsservctl - struct nfsctl_arg arg; - union nfsctl_res res; - - /* Since we don't really want the export to succeed, try - * exporting a path that shouldn't exist. Even if it happened to - * exist, more fields need to be filled out in the u_export - * structure for the call to succeed. */ - strncpy(arg.u.u_export.ex_path, "/__fAkE_pAtH__/__nO_eXiSt__", - sizeof(arg.u.u_export.ex_path) - 1); - nfsservctl(NFSCTL_EXPORT, &arg, &res); - //staptest// [[[[nfsservctl (NFSCTL_EXPORT, XXXX, XXXX)!!!!ni_syscall ()]]]] = -NNNN - - /* Limit testing. */ - nfsservctl(-1, &arg, &res); - //staptest// [[[[nfsservctl (0xffffffff, XXXX, XXXX)!!!!ni_syscall ()]]]] = -NNNN - - nfsservctl(NFSCTL_EXPORT, (struct nfsctl_arg *)-1, &res); -#ifdef __s390__ - //staptest// [[[[nfsservctl (NFSCTL_EXPORT, 0x[7]?[f]+, XXXX)!!!!ni_syscall ()]]]] = -NNNN -#else - //staptest// [[[[nfsservctl (NFSCTL_EXPORT, 0x[f]+, XXXX)!!!!ni_syscall ()]]]] = -NNNN -#endif - - nfsservctl(NFSCTL_EXPORT, &arg, (union nfsctl_res *)-1); -#ifdef __s390__ - //staptest// [[[[nfsservctl (NFSCTL_EXPORT, XXXX, 0x[7]?[f]+)!!!!ni_syscall ()]]]] = -NNNN -#else - //staptest// [[[[nfsservctl (NFSCTL_EXPORT, XXXX, 0x[f]+)!!!!ni_syscall ()]]]] = -NNNN -#endif -#endif - return 0; -} -- 2.43.5