Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp775133pxa; Wed, 5 Aug 2020 12:26:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo3Nu93EnsfrbnK0vgnJJfGa7KgRfK7IjObXbctpxTB5ixSTHHJS6gB80jsUDhrvJ/pUtL X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr752828eds.215.1596655599086; Wed, 05 Aug 2020 12:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596655599; cv=none; d=google.com; s=arc-20160816; b=jzk5tpc3l/BGlYyj/387H0DWjvvZ1IbxFfyRU4CldS3aMMdp0oA/NttNepRFujHXHN 0J+R91imCInmp8C+H1BPek8Lz8wqYPl5dGsImi+YIIQUXQ0n/H+jDYn76rCJgB5PJGxb 7CxF5y5OVXIUlpKVfhfA73+wX2DEizUma0AEjG7SKQmPpMbiZvN69rBwHJJ7cKBG0YE/ pZC9HAKt3fYMouYx3uttXmU9Mt3+BmW2Rk/ol4VVxi5kBJJ0AfDI6w4t2KcrEO2uiMHm o6hwRY4pjoRcMx4n2Xa2IqQccooAKLmdq6NDP5o9OeoyshBfMzWGbkIXHzJUzamnXrab h98w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=yTnFp3FGNnUMIV+drG+EiP28NPY1kzNtc5gU15VKTgg=; b=qvPCvaDs5jypD0uop1GQ94dYk8W8YW3GxKs310FERo8P+KggUbgnSpivsP5JUMIAzo womjs2YWuSKvc1/lrtjqhTO91EMEPz+LRx2rY61Q157eig8DK7qbBcKtVnZGOtQ8Brqm 4xaHPP0DyvfuemrvdHEgztX2kCeA7T73+PPqgsxFoNy7heVPEaI/5pQDzxe0xMn5FVD0 yO3p0RwvgzNzeSGvoh6skF8QQJ/Nvn7TR0U7McD9YIgzk3Klqbo10LLHnAoNib2qq9rx hsyzvuFxnhos4cxg1QHGv3ieZOlzOlVV+UH3g0N5Jd6oAMTx33Uvj+jzXx4TqDUca5sS g5aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IRftECyn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si741044edu.518.2020.08.05.12.26.15; Wed, 05 Aug 2020 12:26:39 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IRftECyn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726262AbgHET0M (ORCPT + 99 others); Wed, 5 Aug 2020 15:26:12 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:59805 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728687AbgHEROC (ORCPT ); Wed, 5 Aug 2020 13:14:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596647641; 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=yTnFp3FGNnUMIV+drG+EiP28NPY1kzNtc5gU15VKTgg=; b=IRftECynq87jUiSLcCluSeDUigQgevfSUIo+31YFvyNWw7GnRHKSlxJX9Rgcgob9LAPp8y tDwIVkeO/inoizwk/LsywieN9mWYkLHc+ihG3R+Rh40+ICBvLsEJVoiyWPdf94DJG1bTM/ 3qJrLHjmS6LLj27dPcMgDAIAFwfSdDQ= 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-404-CVKT19CpOAaHFqv9tWctXA-1; Wed, 05 Aug 2020 13:13:57 -0400 X-MC-Unique: CVKT19CpOAaHFqv9tWctXA-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 3CC2D80183C; Wed, 5 Aug 2020 17:13:55 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-112-32.rdu2.redhat.com [10.10.112.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 089C25D9DC; Wed, 5 Aug 2020 17:13:48 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1596555579.10158.23.camel@HansenPartnership.com> References: <1596555579.10158.23.camel@HansenPartnership.com> <159646178122.1784947.11705396571718464082.stgit@warthog.procyon.org.uk> To: James Bottomley Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, Theodore Ts'o , Andreas Dilger , Eric Biggers , Jeff Layton , linux-ext4@vger.kernel.org, Carlos Maiolino , "Darrick J. Wong" , linux-api@vger.kernel.org, torvalds@linux-foundation.org, raven@themaw.net, mszeredi@redhat.com, christian@brauner.io, jannh@google.com, kzak@redhat.com, jlayton@redhat.com, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/18] VFS: Filesystem information [ver #21] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2329128.1596647628.1@warthog.procyon.org.uk> Date: Wed, 05 Aug 2020 18:13:48 +0100 Message-ID: <2329129.1596647628@warthog.procyon.org.uk> 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 James Bottomley wrote: > It sort of petered out into a long winding thread about why not use > sysfs instead, which really doesn't look like a good idea to me. It seemed to turn into a set of procfs symlinks that pointed at a bunch of sysfs stuff - or possibly some special filesystem. > Could I make a suggestion about how this should be done in a way that > doesn't actually require the fsinfo syscall at all: it could just be > done with fsconfig. I'd prefer to keep it separate. The interface for fsconfig() is intended to move stuff into the kernel, not out of it. Better to add a parallel syscall to go the other way (kind of like we have setxattr/getxattr, sendmsg/recvmsg). Further, fsinfo() can refer directly to a file/fd/mount/whatever, but fsconfig() doesn't do that. You have to use fspick() to get a context before you can use fsconfig(). Now, that's fine if you want to gather several pieces of information from a particular object, but it's not so good if you want to get one piece of information from each of several objects. > ... make it table configured... I did, kind of (though I didn't call it that). Al rewrote the code to get rid of it. David