Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp287868pxa; Wed, 5 Aug 2020 00:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaQTTX3sweE6b9jk5AVuru+md/guxjkRaQfGOlXx0B7M1i+IrS1BhknuQTBIR1+DKxYx9R X-Received: by 2002:a17:906:5812:: with SMTP id m18mr2014847ejq.66.1596613734198; Wed, 05 Aug 2020 00:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596613734; cv=none; d=google.com; s=arc-20160816; b=f6VC3oN8ILBnJFTUG749w/ifkNaZVUAGPZxeuke1Ffy4DFgATdsk+ILvUU7zxojgwx 2VQ9cO5d3jR3YRhJfcW3HGYfKlpxdC8eCbH+DoNWrnsN1YNImNR3VxY95uOnTrKZtRjy ynqHBjh4aLYfchNfIQrXgovM/L93hQgqtHhFqIIiDNeA65fM9gOoNpspjMbcrP4O1G7L 0fojlU0BSQAhV9wBLJnpiV8mHwDI3UUgOVsq5SqU2BU5pndh5WVYTxPnJXsu8BaJ1pT4 n4W4lvU8hF1HrJDsyps1zRYnlgyg6cb5TNSy8HslOcFmBWBZuZqy8UavNap63qtfz2au PQ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JcRNpeqICVUMdW+eQV6cNmoTKrDCq48jfX1KaVHDvwQ=; b=YsOysookjN5yT6h/7Js7k/4e5uZ0msrR58WU/oG03M8axB5Y3Bdca4p0lhOQVxhlhY nAon3+vYyWZhurLfWlL7rYaSYQ8gvHB+3djr38J2Wj5+yMIOwkNE/dI6R10hc2LBCt3C +mCkQXzPmdL+EhpZ4ugvX1NJ6KjJmIIY6TwbtzDmTzRoOapExhVNBM4fqG3tHE/rfrHT zyi9OQEm1MhpDk/I4xBh8RIg0w2LwA5YudesNojCh6cFIvdddAofhjHhjIjWRYcUevfr 5Md+LrMhhJuvsglWBvMZ5vc7BHhjdShiG169qq8mWmGTLWvz5GUKwZvKPLhXoWQr5SWJ xwyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Feg85hqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si773580edw.538.2020.08.05.00.48.31; Wed, 05 Aug 2020 00:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Feg85hqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726532AbgHEHqH (ORCPT + 99 others); Wed, 5 Aug 2020 03:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgHEHqF (ORCPT ); Wed, 5 Aug 2020 03:46:05 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6EB2C061756 for ; Wed, 5 Aug 2020 00:46:04 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id c16so24944553ejx.12 for ; Wed, 05 Aug 2020 00:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JcRNpeqICVUMdW+eQV6cNmoTKrDCq48jfX1KaVHDvwQ=; b=Feg85hqy7+vcolCIrLFilOaGgrOtXj8thXykBp3Bp0XpYsuPfElOh4nm8I3SnyS62b 64JD9H/zVxxGypHdTvYO2f1EJ0uPlTosWe53MpIC26xzA7XHbleGbFMLSSofhpx5X7gL 6fThps3gz64rNFTjpg3m0BIu77PqTCGcRQciM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JcRNpeqICVUMdW+eQV6cNmoTKrDCq48jfX1KaVHDvwQ=; b=IwdvWrD/h7UnKXBCliOJ8/bdV1m/8iKGvkhlll16gdKhm9iOKjSE2ygwAAD40xVOCD rsFUPkQfcGkTZe+FV79y1BjMUe+NsNZbi4cy3QC8WCY6DYRbjZPqkjnPFJ2H88eJmM8J VtM6UXRgXry5Dh9NCIGmkvZV/2BjSRmwdgItrVPAu6k00b1zIPnmTtLRwhqqPZgjrN/n woxs5hBSUlGgFj+QtPCQ6EK0hQB8HjR4+6ipIvLczKQbjPnaTFy7Mi32K2Zbp5rsW7An +BkeszBtK7X4JgZ+cKkJ/tPMxAcDB1w73z8nNlSAGQsHLP3nuH2LjAk7yYew0/w0tizU 61Fg== X-Gm-Message-State: AOAM5318u0gULML/sCdKRbmPR+DqB6TBKdOE7MIyRWeZ7vMDo3RXXmUY IMeyCZ53m0fIVuSs7WTj/v+qDziiXDqSXAYpdw43vg== X-Received: by 2002:a17:907:405f:: with SMTP id ns23mr1832194ejb.511.1596613563524; Wed, 05 Aug 2020 00:46:03 -0700 (PDT) MIME-Version: 1.0 References: <159646178122.1784947.11705396571718464082.stgit@warthog.procyon.org.uk> <159646187082.1784947.4293611877413578847.stgit@warthog.procyon.org.uk> <20200804135641.GE32719@miu.piliscsaba.redhat.com> <94bba6f200bb2bbf83f4945faa2ccb83fd947540.camel@themaw.net> <5078554c6028e29c91d815c63e2af1ffac2ecbbb.camel@themaw.net> In-Reply-To: <5078554c6028e29c91d815c63e2af1ffac2ecbbb.camel@themaw.net> From: Miklos Szeredi Date: Wed, 5 Aug 2020 09:45:52 +0200 Message-ID: Subject: Re: [PATCH 10/18] fsinfo: Provide notification overrun handling support [ver #21] To: Ian Kent Cc: David Howells , Al Viro , Linus Torvalds , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Karel Zak , Jeff Layton , Linux API , linux-fsdevel@vger.kernel.org, LSM , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 5, 2020 at 4:46 AM Ian Kent wrote: > > Coming back to an actual use case. > > What I said above is one aspect but, since I'm looking at this right > now with systemd, and I do have the legacy code to fall back to, the > "just reset everything" suggestion does make sense. > > But I'm struggling to see how I can identify notification buffer > overrun in libmount, and overrun is just one possibility for lost > notifications, so I like the idea that, as a library user, I can > work out that I need to take action based on what I have in the > notifications themselves. Hmm, what's the other possibility for lost notifications? Thanks, Miklos