Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp830812ybf; Fri, 28 Feb 2020 08:26:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwy5Sx4H4wsAFPRVnkzq+fCSeQLI5WWNf9ZwKAfvrF8qMNuXfZq4XN1vOzXR5QyhlvkWTqE X-Received: by 2002:aca:4306:: with SMTP id q6mr3797512oia.54.1582907178738; Fri, 28 Feb 2020 08:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582907178; cv=none; d=google.com; s=arc-20160816; b=No66hNCa4+6auRAhwREPETUw0GKw7tnxdbJv2yoxhSctJR6+5QmJW01qSkwtkP/rvW imR9KS9NolupR77Y2Yp9t7Y+7OkTTriN8dbSkP7ljb+eU8jJxo0cSH3w2EO1RstFupt2 rqy6T2VuhjHlxbQUhLaWkLolcFXOEh3gytY0zmle6mckOqCTcoWm01nls5T2sMr5wp+v 24Ahg3gAHzAD4bmCQ32p5cMmpjVsZFhNC0wvgvaIAn1tqOcbGaCZ0iDM60IQgEHA08VC 1y0PkgVz5WNmzVGbIDsT5+bEOlL9bqWyuSEKu22AVAKdeLw67OKAegHkYLdf+cUFzMht OrvQ== 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=bB98tLoF0u0YAiQkQFd8a6MwFlRbdwFA2a9rJyqMwcU=; b=zt2kcietmkeI/6aDS6/nFY0pN3TGssEYuKvwRmc9nY+iif+TOPzJkuVh/vsv7Ivlea ScajW9jO9XWLWdpDiTbG7aV1DkoEN6CPb/RKunMZmiS6WTdVvoYsRQEK0enqpNpdFRiV c1i8znch8q+phSAbtj7e5aVhsQf8tPPcOCYkAqdL+1PADnqSiFfxVhnxWqOZHqyj3+0d N0PM4Zygv5Lih2Oi6vq8hKbea3vfM8fe5lX7K428PHcNgV4RPmTK9kXFngWlzSslxaKa nfp0tczXSVvUu1lK0cmWj4a/C8QXUW6PUEsnDr1WphGnAu5np/9WqWLzDr1CBcC3jRpr CnmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="inr1/qyO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q81si553299oic.174.2020.02.28.08.26.05; Fri, 28 Feb 2020 08:26:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="inr1/qyO"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbgB1QYh (ORCPT + 99 others); Fri, 28 Feb 2020 11:24:37 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:42685 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgB1QYg (ORCPT ); Fri, 28 Feb 2020 11:24:36 -0500 Received: by mail-io1-f67.google.com with SMTP id z1so3990283iom.9 for ; Fri, 28 Feb 2020 08:24:35 -0800 (PST) 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=bB98tLoF0u0YAiQkQFd8a6MwFlRbdwFA2a9rJyqMwcU=; b=inr1/qyOInYmFN6D425GzWVmy0IT7QRJk3SjPLoFYSH/pO1voh/EdW+SfD8OofD6Bn wvNaWCaLKbDpnb6pOCFOt0X9wayPiilDqg7EASARHhnxnaUyVoJrs35dzHFojcJnpWDF dEnNQkAT4yoK8tzeRd9BPUclNV9H8sVGfsSfM= 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=bB98tLoF0u0YAiQkQFd8a6MwFlRbdwFA2a9rJyqMwcU=; b=g1qVT+xqT64s36n1pJUYliVxqKzVxUsFWBfpyXbyZx5huHnzMhyLjihldUEn/TYw3f ffawQuF5/7Myq4kBMpjkwEMm+lzqr6oKPTemhsOWgfhe0/GTK9IvFOeUPhht9kEiQUnL yoSQnAGw8XeiF6K6GvoxUz5ks/e+u+8TDdoydkI8z0RSf5/LZ/RqC2I4ss/L6E7ZYjwC bwr8uCnQTJmbAH68RX7BdU1SSMieutU72i8NPJBoX1neMIOUboEJ8ld8CxYZkFwkZJP1 KIp1SY2pN5GnTVYw+WdOFE9rc1Lg0DJi2c8eN01nZSjZz7d3gBGl1NlBVslbsteCL0iK cLQg== X-Gm-Message-State: APjAAAXdw9OTClf8Why3MpVaIktj+KKDjTgkeHJVteg1NaJpx043KMeq 6GpZvVMNRxbYky7MDshC536InITo09uPHP1JFr9veA== X-Received: by 2002:a02:9988:: with SMTP id a8mr4117936jal.33.1582907074679; Fri, 28 Feb 2020 08:24:34 -0800 (PST) MIME-Version: 1.0 References: <1582644535.3361.8.camel@HansenPartnership.com> <1c8db4e2b707f958316941d8edd2073ee7e7b22c.camel@themaw.net> <3e656465c427487e4ea14151b77d391d52cd6bad.camel@themaw.net> <20200227151421.3u74ijhqt6ekbiss@ws.net.home> <20200228122712.GA3013026@kroah.com> In-Reply-To: <20200228122712.GA3013026@kroah.com> From: Miklos Szeredi Date: Fri, 28 Feb 2020 17:24:23 +0100 Message-ID: Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: Greg Kroah-Hartman Cc: Ian Kent , Karel Zak , Miklos Szeredi , James Bottomley , Steven Whitehouse , David Howells , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml , Lennart Poettering , =?UTF-8?Q?Zbigniew_J=C4=99drzejewski=2DSzmek?= , util-linux@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 Fri, Feb 28, 2020 at 1:27 PM Greg Kroah-Hartman wrote: > > Superblocks and mounts could get enumerated by a unique identifier. > > mnt_id seems to be good for mounts, s_dev may or may not be good for > > superblock, but s_id (as introduced in this patchset) could be used > > instead. > > So what would the sysfs tree look like with this? For a start something like this: mounts/$MOUNT_ID/ parent -> ../$PARENT_ID super -> ../../supers/$SUPER_ID root: path from mount root to fs root (could be optional as usually they are the same) mountpoint -> $MOUNTPOINT flags: mount flags propagation: mount propagation children/$CHILD_ID -> ../../$CHILD_ID supers/$SUPER_ID/ type: fstype source: mount source (devname) options: csv of mount options Thanks, Miklos