Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp583902pxb; Wed, 22 Sep 2021 08:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzETpr0I2HPzHzZO1AvkBHTM8sTQJCBuW814QtpK4cbdHBoxlHoDdTbkiadM2/8h2xt6Qrc X-Received: by 2002:a02:cbde:: with SMTP id u30mr382210jaq.102.1632325066958; Wed, 22 Sep 2021 08:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632325066; cv=none; d=google.com; s=arc-20160816; b=h7N9a8NCUDTlz8EBwrmnw/L5XhjTgMxH/UMjIbgwflZphY/iRu6waL7uJaUr5kJzEr 1xjEB7unn1yl8lU40nGtxqUPmOBrRexOql4EkILbWTwnX1W79mnm6IRZKkqw2OoJOyHc 1QYpmoIP3yaJKNfTt3oCWctGs/FcjS6UJ5KxQeOJKLpjeSOd3IztJe6FTssoEbqdAFMG peqsKSN5oP3ucw2G5+8HZZgjmO9PElijfcTkLK9iLTBEg/h+GkJSRvyLn/jJExs7VIS7 Apkuiw4X3zoRP0XaGVChHXltbgIMjYstBm/35s+agDCE8P37sqahj55li1ZyM5aeTQ0g i7Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Xm50amDwEdJyT+MqX3sDHBl8pNMiVQt1LghCgwuKR2A=; b=AYCk0ISw/lCzss+3NERozdhuqdEhlHee5Cxcl5Mf/ZQWVafos8CbHR26x+iAu86AV1 XmVF/i8CUzXHpqQ25+VMSFcGqPN5NCugeohNHWBu0H3CZlk0XcmDn1aGmHS4QDQ1slA9 T98eVOKrOfKqlkvfxKLQNmIy7Tzvo/uW3Xa6XvjGe87lfIZly0LCwQAeT/WGpwO9TALv KouFxqXu5SyfCr4Puk2Tlg/OOuJULzNVVLseQewOG6utp9uXf76L0rdt4e4hm8Y0atBn uCNQKNEo8pQ3EFAvV/MVD/XD+XlV5lJSkSTOsizl5FDmQonCrahn4Awv0KHyHM6uR5Tx StFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OVMBVbaf; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si2843451ior.13.2021.09.22.08.37.34; Wed, 22 Sep 2021 08:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OVMBVbaf; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236434AbhIVPhp (ORCPT + 99 others); Wed, 22 Sep 2021 11:37:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32683 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236400AbhIVPho (ORCPT ); Wed, 22 Sep 2021 11:37:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632324973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xm50amDwEdJyT+MqX3sDHBl8pNMiVQt1LghCgwuKR2A=; b=OVMBVbaf0c4sgOb52x7QMUb5w0vEYHcpB4qHMWkqUT2N0+ozQyXM9gXmlCQL6Gu9Vy2x9e nKmmYCB3d2LUYipcB8+eJzwVo2fCox6F14X3GEoTxQzmf7jblmyqvvoLv4g6W5z8eQXp3X szxofDQWLShNXX3qunWwQIRhobDPVao= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-npSN3F-2OE6RkDl6JKiywg-1; Wed, 22 Sep 2021 11:36:12 -0400 X-MC-Unique: npSN3F-2OE6RkDl6JKiywg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 817A39126B for ; Wed, 22 Sep 2021 15:36:11 +0000 (UTC) Received: from dobby.home.dicksonnet.net (ovpn-114-242.phx2.redhat.com [10.3.114.242]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B56610013C1 for ; Wed, 22 Sep 2021 15:36:11 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 2/2] mountd: only do NFSv4 logging on supported kernels. Date: Wed, 22 Sep 2021 11:36:10 -0400 Message-Id: <20210922153610.60548-2-steved@redhat.com> In-Reply-To: <20210922153610.60548-1-steved@redhat.com> References: <20210922153610.60548-1-steved@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1979816 Signed-off-by: Steve Dickson --- support/export/v4clients.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #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); -- 2.31.1