diff options
author | Steve Dickson <steved@redhat.com> | 2021-09-22 11:31:56 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2021-09-23 11:39:07 -0400 |
commit | feb3dfc7127cf1337530ccb06ed90e818b026a07 (patch) | |
tree | 3b2fc6b99c8b3e49252d93cc1de8f28da9d8e140 | |
parent | 47e6d7667cd7cd82c9033a3176afbdd2341065b0 (diff) | |
download | nfs-utils-feb3dfc7127cf1337530ccb06ed90e818b026a07.tar.gz |
mountd: only do NFSv4 logging on supported kernels.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1979816
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | support/export/v4clients.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/export/v4clients.c b/support/export/v4clients.c index dd985463..5e4f1058 100644 --- a/support/export/v4clients.c +++ b/support/export/v4clients.c @@ -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); |