Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2130760ybf; Mon, 2 Mar 2020 02:35:50 -0800 (PST) X-Google-Smtp-Source: APXvYqy68mQ1BTpe40oaxr6/AOk4pxm4tgiomHlaVN/aGowizTxuiVJlgfHZn8kUWd/OelB9KGPR X-Received: by 2002:a9d:64cd:: with SMTP id n13mr12162940otl.274.1583145350302; Mon, 02 Mar 2020 02:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583145350; cv=none; d=google.com; s=arc-20160816; b=nn5kwrV/2mEke8mdPAbOMLgtzuEkD0IY6/b4cw4nkDEjJDN/PSBVlG9cx4dtWRiEnv OYJawZrrFaY+PDHLirNOssiU8GiIupq/lA/J2pzJtftEC2C/RTp8xvW1g83Z8h4yo4R/ jPP1JMghPZsdIHAagxbeZwpLfkZUgCpXkEN/hfo3lrKcNUl3aePi7Llc8jYHO6SwCqaj W2DPOK7N+KpAtcOgu9mt6LgtWSFUlhBNAtpKT3MP6aDcBpvOkS4JkTF6Xy6BujR1hza1 v3RR26BV+2oD5vMi4D3qOARW3vrick2IDua+05rSBmPgj0MXrFHMmvSdZG4Rs3uWcrvu C8sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=TnovkU9TRaPZCsU6BNaYIoozjytGGGEjCSLnwzS1uVA=; b=NMhbAANKdExf+X5SNdJJFhJYlXzDmRAkMOtVJAejZUyPNrLsCuwVyU3H3BeSbRAz9o seaFH7KKB/NVigAlCD+Z6h0QepphisWVEAS1j8gHosk3R6u5A+oyELq8jgZnQFzDh8xj IZZuKlf6UT32NY9pGrfhORiMdYr8I5ChQ5f2NzNMQxKGjqnQ9i150TQu3ZNyoWihXa8u 7IYLAYmZQc0E8fLsqtrv66fNg1Hz25me2snqwkY70gbrtj5JVlusUzI2CyMi1dfW7Yr4 W6t+zadwXxNGQZLrA6cfxFlmcp80iHO2l5clKbyf/3DKQ/K1GiYtWYsohw+oJM2emuxE XAYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qom4XfIY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23si6196743oti.65.2020.03.02.02.35.38; Mon, 02 Mar 2020 02:35:50 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Qom4XfIY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgCBKeP (ORCPT + 99 others); Mon, 2 Mar 2020 05:34:15 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:32121 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727095AbgCBKeO (ORCPT ); Mon, 2 Mar 2020 05:34:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583145253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TnovkU9TRaPZCsU6BNaYIoozjytGGGEjCSLnwzS1uVA=; b=Qom4XfIYlPAe26Iv3RL2ycfMdoAfIBT2+t+tGfEBK0kATwmuuBqSn7BznabOaYN6kjMJRp p/xvVtYBAIdqeyKlWUSRtZ845xeuBwBjUZ3O7iF2sA8AIW6xusbfxL4+r8mCThlkTMp/k0 sgZylRqGaEPEtellIPLGYrT/WTcVgrE= 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-65-tECFLaW-PiulY-HJ6apnyg-1; Mon, 02 Mar 2020 05:34:10 -0500 X-MC-Unique: tECFLaW-PiulY-HJ6apnyg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81C8410824EE; Mon, 2 Mar 2020 10:34:07 +0000 (UTC) Received: from ws.net.home (ovpn-204-202.brq.redhat.com [10.40.204.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 97F465DA2C; Mon, 2 Mar 2020 10:34:03 +0000 (UTC) Date: Mon, 2 Mar 2020 11:34:00 +0100 From: Karel Zak To: Miklos Szeredi Cc: Greg Kroah-Hartman , Ian Kent , Miklos Szeredi , James Bottomley , Steven Whitehouse , David Howells , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml , Lennart Poettering , Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= , util-linux@vger.kernel.org Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] Message-ID: <20200302103400.vk3cki7agfq2zhpv@ws.net.home> References: <1c8db4e2b707f958316941d8edd2073ee7e7b22c.camel@themaw.net> <3e656465c427487e4ea14151b77d391d52cd6bad.camel@themaw.net> <20200227151421.3u74ijhqt6ekbiss@ws.net.home> <20200228122712.GA3013026@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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 05:24:23PM +0100, Miklos Szeredi wrote: > ned-By: MIMEDefang 2.78 on 10.11.54.4 > > 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: What about use-cases where I have no ID, but I have mountpoint path (e.g. "umount /foo")? In this case I have to go to open() + fsinfo() and then sysfs does not make sense for me, right? Karel -- Karel Zak http://karelzak.blogspot.com