Move version.h into a common include directory
Subsystems (2)
PATCH 1/2 Move version.h into a common include directory
Signed-off-by Steve Dickson <[email protected]>
--- support/include/version.h | 1 + utils/gssd/svcgssd_krb5.c | 2 +- utils/nfsd/nfssvc.c | 2 +- utils/nfsdcld/nfsdcld.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 120000 support/include/version.h
support/include/version.h new file +1 -0
@@ -0,0 +1 @@ +../../utils/mount/version.h
utils/gssd/svcgssd_krb5.c +1 -1
@@ -46,7 +46,7 @@#include "gss_oids.h" #include "err_util.h" #include "svcgssd_krb5.h" -#include "../mount/version.h" +#include "version.h" #define MYBUFLEN 1024
utils/nfsd/nfssvc.c +1 -1
@@ -25,7 +25,7 @@#include "nfslib.h" #include "xlog.h" #include "nfssvc.h" -#include "../mount/version.h" +#include "version.h" #ifndef NFSD_FS_DIR #define NFSD_FS_DIR "/proc/fs/nfsd"
utils/nfsdcld/nfsdcld.c +1 -1
@@ -45,7 +45,7 @@#include "cld.h" #include "cld-internal.h" #include "sqlite.h" -#include "../mount/version.h" +#include "version.h" #include "conffile.h" #include "legacy.h"
Signature · 1 line
2.31.1
PATCH 2/2 mountd: only do NFSv4 logging on supported kernels.
Signed-off-by Steve Dickson <[email protected]>
--- support/export/v4clients.c | 3 +++ 1 file changed, 3 insertions(+)
support/export/v4clients.c +3 -0
@@ -10,6 +10,7 @@#include <sys/inotify.h> #include <errno.h> #include "export.h" +#include "version.h" /* search.h declares 'struct entry' and nfs_prot.h * does too. Easiest fix is to trick search.h into
@@ -23,6 +24,8 @@ static int clients_fd = -1;void v4clients_init (void ) { +if (linux_version_code () <MAKE_VERSION (5 ,3 ,0 )) +return ;if (clients_fd >=0 )return ; clients_fd =inotify_init1 (IN_NONBLOCK );
Signature · 1 line
2.31.1
Re: [PATCH 2/2] mountd: only do NFSv4 logging on supported kernels.
Quoted 2 lines · Steve Dickson
Committed... (tag: nfs-utils-2-5-5-rc3)
steved.
Quoted 26 lines
--- support/export/v4clients.c | 3 +++ 1 file changed, 3 insertions(+)support/export/v4clients.c +3
-0@@ -10,6 +10,7 @@#include <sys/inotify.h> #include <errno.h> #include "export.h" +#include "version.h" /* search.h declares 'struct entry' and nfs_prot.h * does too. Easiest fix is to trick search.h into @@ -23,6 +24,8 @@ static int clients_fd = -1;void v4clients_init (void ) { +if (linux_version_code () <MAKE_VERSION (5 ,3 ,0 )) +return ;if (clients_fd >=0 )return ; clients_fd =inotify_init1 (IN_NONBLOCK );
Quoted 1 line · Steve Dickson
Signed-off-by Steve Dickson <[email protected]>
Committed... (tag: nfs-utils-2-5-5-rc3)
steved.
Quoted 56 lines
--- support/include/version.h | 1 + utils/gssd/svcgssd_krb5.c | 2 +- utils/nfsd/nfssvc.c | 2 +- utils/nfsdcld/nfsdcld.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-)create mode 120000
support/include/version.hsupport/include/version.h new file +1
-0@@ -0,0 +1 @@ +../../utils/mount/version.hutils/gssd/svcgssd_krb5.c +1
-1@@ -46,7 +46,7 @@#include "gss_oids.h" #include "err_util.h" #include "svcgssd_krb5.h" -#include "../mount/version.h" +#include "version.h" #define MYBUFLEN 1024utils/nfsd/nfssvc.c +1
-1@@ -25,7 +25,7 @@#include "nfslib.h" #include "xlog.h" #include "nfssvc.h" -#include "../mount/version.h" +#include "version.h" #ifndef NFSD_FS_DIR #define NFSD_FS_DIR "/proc/fs/nfsd"utils/nfsdcld/nfsdcld.c +1
-1@@ -45,7 +45,7 @@#include "cld.h" #include "cld-internal.h" #include "sqlite.h" -#include "../mount/version.h" +#include "version.h" #include "conffile.h" #include "legacy.h"