From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB5E8C3F2D2 for ; Fri, 28 Feb 2020 16:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C29422468E for ; Fri, 28 Feb 2020 16:24:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="inr1/qyO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbgB1QYf (ORCPT ); Fri, 28 Feb 2020 11:24:35 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:38488 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgB1QYf (ORCPT ); Fri, 28 Feb 2020 11:24:35 -0500 Received: by mail-io1-f67.google.com with SMTP id s24so4026966iog.5 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=ShgHsNcFhaDHl7O8ERdrs1Kbv5mqmnZy5HskwsTd3i3E3uE6uM4xusG3EItytn7Nff kAKKRXoqRNswQ/lcFDSsVg0nzbR7BeV3sBZbs9eAc0zv7i9NaUJ3ea/qspmkqk28sFu6 I6jHmQhLAFbcLZ4qGzHpOYYW48As2wRd1tBGkolZ63StY32tcjIkEI03496ZZLMbUZdm dyah6kIJbDnLDI+a4VcD1jGQRi55tw659CV60BQ+3i0iTUzmlY7AS7IiwLccWr7pGCvG ZN+UZj1lWm1nYfW3VOBxL9yxS/Nc5N1lwL55s7/GvGKwgibsdCiYEYlSRe9+/gfZrkn0 V1Jg== X-Gm-Message-State: APjAAAWifLJlqKgbL/s18BZOUcxMkap+/+XhQ+lCjf9YkZSSOnk8Po/k 1nfUPln8moIZWVlwCqqwDRTGbZHzz6SKYY/3nyWqZQ== X-Google-Smtp-Source: APXvYqzW4AhONnArihOqANfWi8suDYP+nTtZwmEhAQutobth5sBaSR8sSuEmoVmIoU8B7DsyWsdjOGmol0a5XteeUNc= 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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