Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2311178pxa; Fri, 7 Aug 2020 08:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzgBvruMlbp3xfGMK3mXdjeGmnKLRvEGKCLcVwFeV4gJCuuZzJJ6W9VQiyuXKlJ6AZWKEQ X-Received: by 2002:a17:906:fb04:: with SMTP id lz4mr10120617ejb.394.1596813144662; Fri, 07 Aug 2020 08:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596813144; cv=none; d=google.com; s=arc-20160816; b=cke9o68Dj/6D1uZifRl0Td6vuBlu9FSo74ZRi6F7lPEpJUEm+gS7keLdeQTZEQjo2Y 6Pphisp0SqWuX/0uKDA4Dv5puMH0VmGAFfu5a1xHc45QtVc3VM+h1hpN321kzc+89ywt twRrt6iM4yjnKdhdfDvIMVUb93vZsfQKs+12GrbFxjLJk8CpjHXgOeFFjqcVCWmgbA/V HQNGpn1cHtqZLvNa06YdAS7HOeOuIi2l/6AUClm4JDlGdztDNnn+bZ6SdzGc9Zg+n3/c rTVEvO/IrUWLDOcb+aZzGHyfNuhY/RJ9AEX5MpybRU9nxoBBDTIOQeguzC6TyWh2lDHs 24aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=pPuxnFHo3jjZjpkhbXsaIuwya0Ld+Dzk4mQeLTjZGNs=; b=QFmuYiN032sxYjQXv47rLU2REK8WJgVLkMIGuR7aTeyZLqgB/q6vxP2G/6KkQnFHt5 kY7H+/AEkvTGjboSO5z9wrLXOqgTqqvIEKTHYIt028nI1ddK01w1BXtGTG4f6Z35wctN PMCysBWiuSh90RUbfx4tndJ8BlKTKb+Tb4AMdDRVkw89jXsBBzLT2q6CSnTOYyV6yK+g aizX+C6dfue2OHBKLtKCh/HFo4dmgp1oK/m2MnVIWcvrQvjkaaP7oy0Kr/aC/Gm1lEGw yjjsTdvaeK2/yMmr1PJuq2wTvCzR73LaIYAIMGkNtOqaCINt7aoftsMQFBH5a0ts7zi7 0nGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L2RDxf9R; 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 ce15si5951430edb.291.2020.08.07.08.11.57; Fri, 07 Aug 2020 08:12:24 -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=L2RDxf9R; 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 S1725993AbgHGPLy (ORCPT + 99 others); Fri, 7 Aug 2020 11:11:54 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:30982 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725893AbgHGPLy (ORCPT ); Fri, 7 Aug 2020 11:11:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596813112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pPuxnFHo3jjZjpkhbXsaIuwya0Ld+Dzk4mQeLTjZGNs=; b=L2RDxf9R1/ytVe3zSjP3uBUyj7BkghXwwyqpa/4WPDCOuTPckyoE5TlVCeXChL9XnznKej O+klK8qbvsoRo+Vf4q1bdyCWiIEQFgjKsmlun9WFAmmLPNYuLSphCdT/Cq6dqCSXePgJL0 V24W1fd8Y+aDX1eL0jArwfnLrEb+TB8= 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-514-LmjF-B8jPxKXWvHC43ADDw-1; Fri, 07 Aug 2020 11:11:51 -0400 X-MC-Unique: LmjF-B8jPxKXWvHC43ADDw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32FF3100A8E7 for ; Fri, 7 Aug 2020 15:11:50 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-112-70.phx2.redhat.com [10.3.112.70]) by smtp.corp.redhat.com (Postfix) with ESMTP id 041C61973B for ; Fri, 7 Aug 2020 15:11:49 +0000 (UTC) Subject: Re: [PATCH] idmapd: Turn down the verbosity in flush_inotify() To: Linux NFS Mailing list References: <20200805190054.39513-1-steved@redhat.com> From: Steve Dickson Message-ID: <8d993f69-11d8-49f3-5146-02c1da8aae56@RedHat.com> Date: Fri, 7 Aug 2020 11:11:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200805190054.39513-1-steved@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 8/5/20 3:00 PM, Steve Dickson wrote: > So idmapd does not flood the logs with messages > nobody will understand, only print the message > with verbose is set. > > Signed-off-by: Steve Dickson Committed... steved. > --- > utils/idmapd/idmapd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c > index 8631414..7d1096d 100644 > --- a/utils/idmapd/idmapd.c > +++ b/utils/idmapd/idmapd.c > @@ -500,7 +500,8 @@ flush_inotify(int fd) > ptr += sizeof(struct inotify_event) + ev->len) { > > ev = (const struct inotify_event *)ptr; > - xlog_warn("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s", > + if (verbose > 1) > + xlog_warn("pipefs inotify: wd=%i, mask=0x%08x, len=%i, name=%s", > ev->wd, ev->mask, ev->len, ev->len ? ev->name : ""); > } > } >