Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp444901pxa; Wed, 12 Aug 2020 06:12:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYmLcHAob+WTcip51cKWPkyNfHWB1jCuhDKliIHYYmFILEk7CIvoknMis2kSPhhl94icZ3 X-Received: by 2002:aa7:d983:: with SMTP id u3mr31939404eds.366.1597237958776; Wed, 12 Aug 2020 06:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597237958; cv=none; d=google.com; s=arc-20160816; b=RS2N0Qu5SpTJgz74JCQYoM093pYqhfic86G4ukKppPQgaqtZ15RWjWLQkS5Xl9BaNA nWWwUWcQVZUGZvxfDB07X+qY/39yUp3CQP8z09OJ3fg06Ocx6LYq4kfMnj9OTgnOiNUu rioCM4c5pxcpAUwKpaOfRVK6ivvXXDAEmfSChWd4cWaduBvnCGkGYk8cgplJc81bAVjY L/ZK6oeDRt7LlH0Ve/ly3GBMvAn0QXMz0v/7LkXfQ48WT8DwvjNvbK5k9bCSnzvkwcM/ I6PfQvo3zR3VpxJw7wjtSSDnNOcEoCcqg4OMSBGK9hK71oaRM1oyQIAIYhHSnp6syGBC 5K7w== 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=dDaKIw34dbl2BS19WgtGHw4f1WrFR2cMDs9vgYrFqRA=; b=Luuu1aIumvNtzssAygFMxRqNZhTXXHA3XNgb3NdCdoLQDDBQY86Ui+ScK5TjjEc+UH ZAGgEwd53Suh5Jgde+znNYnJD50XqDW3sFWhnaF+uaS6A7n94unrl0PjkxZWNFt70AQI xrHDLOgDDDbhgsht50GVZFnAqRJntvLVPupUblhbDIoL4kw65xq0DcJjkbXJt2YhOPoV UlBm46c1y/rVA2e0agnlF24244q1HcP7ME/w0Q7BbJWmg/fTgkSg1dIuubjU5+FHPNwA egmSqVLK8joggB+J03Ld7Iv00jdNjCmjfy0DhWLx3BFc8p/VuofVe27kjX1TEB3c1Jjt HVGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=f3imS+8n; 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 si6si1078355ejb.331.2020.08.12.06.12.14; Wed, 12 Aug 2020 06:12:38 -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=f3imS+8n; 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 S1727872AbgHLNJo (ORCPT + 99 others); Wed, 12 Aug 2020 09:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727050AbgHLNJm (ORCPT ); Wed, 12 Aug 2020 09:09:42 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B357C06174A for ; Wed, 12 Aug 2020 06:09:39 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id bs17so1488188edb.1 for ; Wed, 12 Aug 2020 06:09:38 -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=dDaKIw34dbl2BS19WgtGHw4f1WrFR2cMDs9vgYrFqRA=; b=f3imS+8nyoc+AeGEyfplnYFj1FbYpGqeslu9w52ddIfQ/9dI/X2nGcCAKVKStLE6Dp 9/bG54SxegeZiSz6ojev1zwm6xgk7bREoz2f33F4iLpDVdGYn749mq7xMDWbwNmnTo5r sy2qzQIlhF5PDon4IfaUAfEgRmQOA5q+0cTuo= 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=dDaKIw34dbl2BS19WgtGHw4f1WrFR2cMDs9vgYrFqRA=; b=gm+lc7Rmatm8dKMYADMmaRDiEXHs+QKCOjQZkVRL8P+uocsIzvt4Bbk8Xg3kjdK0Y3 NGAvmkoBVS+CQwo7QP/Wf45umENvxNL2axH2K8silAGf2mwXN4P0janvSPFZkyQjB5Gs YnkBt+Jp4rrlxB1bfR8Dccv5fcmWncSn0BKibcJ6hrS09D8rjv/qVm0DJE7Im8D+tXCc rVxV2XuJRokYGh/ugLPbdud6+N7KV28EAVBEnRUxe6K67Uk4XhfHf7qbLlur6xI+EWlD 0jHIv0HNLD2uizRlEWfG2Svur4SxbbCl81kWz+iycN7yq1XyKVftkXBUFMHXZ5mlYCru 6pog== X-Gm-Message-State: AOAM533L5qb5vDOJ23Z/wlQirMt4aHQux4tYg8ku3wTNo5Cbx70xUp8T B9pc7ycCIX0vYQtyXCPWqGiKevmmxGH0NPPTDtleeA== X-Received: by 2002:a50:fb10:: with SMTP id d16mr31093480edq.134.1597237777804; Wed, 12 Aug 2020 06:09:37 -0700 (PDT) MIME-Version: 1.0 References: <1842689.1596468469@warthog.procyon.org.uk> <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <20200812101405.brquf7xxt2q22dd3@ws.net.home> In-Reply-To: <20200812101405.brquf7xxt2q22dd3@ws.net.home> From: Miklos Szeredi Date: Wed, 12 Aug 2020 15:09:26 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Karel Zak Cc: Linus Torvalds , linux-fsdevel , David Howells , Al Viro , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List 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 12, 2020 at 12:14 PM Karel Zak wrote: > For example, by fsinfo(FSINFO_ATTR_MOUNT_TOPOLOGY) you get all > mountpoint propagation setting and relations by one syscall, That's just an arbitrary grouping of attributes. You said yourself, that what's really needed is e.g. consistent snapshot of a complete mount tree topology. And to get the complete topology FSINFO_ATTR_MOUNT_TOPOLOGY and FSINFO_ATTR_MOUNT_CHILDREN are needed for *each* individual mount. The topology can obviously change between those calls. So there's no fundamental difference between getting individual attributes or getting attribute groups in this respect. > It would be also nice to avoid some strings formatting and separators > like we use in the current mountinfo. I think quoting non-printable is okay. > I can imagine multiple values separated by binary header (like we already > have for watch_notification, inotify, etc): Adding a few generic binary interfaces is okay. Adding many specialized binary interfaces is a PITA. Thanks, Miklos