Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp382276ybb; Wed, 1 Apr 2020 01:45:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJnqx0zK7zavfVOOOkKnEobvNKjYZ0i4dx2yr5QzESSQEfHBGIVvop51BH0edmunPDbm/iv X-Received: by 2002:a05:6808:a0a:: with SMTP id n10mr2058420oij.10.1585730751446; Wed, 01 Apr 2020 01:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585730751; cv=none; d=google.com; s=arc-20160816; b=jm5NSfWWvlXwVqhuTtsPXPWd7gJIqjAynhlLSlw+bu/vpO36Ruier2F73i4Fy70Pb1 W1j6CvL1yJ9mDQXkMooGIxoIk7i3nAFJW2rMD/uanyC6kaydkNPXA+no3i2agU7uwXhK 5O12ClTtvSP2l1DeEhcdze90XHyWphD7Yk69OiUlFh4FIgCNBbZs4lkludRW3ke0GJOO 9AMWM5+DbSByqYPHMW6rlfsvyPHOXwsYnZ/upoNc4qCUi5M6sXayJSfHr6RCNz7VTwQa 3fdOuTIlP7tsqfiqH0GFnSKIBXt9eBAUgaGiHhIcSpauKzgTM9ebcUd5olDziUzeo+Zi BRHQ== 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=ghf5BEjuQ0VVHQ+GDvKrov7j0WF8psl/+NBJNRKsHsA=; b=jbe/HTudzCMQwnWJUIOaFF03RwDeEYu9kj4de3NwzLFPUzXE6tmpelWCkUHJZL2V3a dBY9D+l3IiGBsE98CuDrf3GalIs6STutFdBiMf1PMKVmDQtGE+UnP+/SjLPqW28xN4L3 uiYVTdDqzmj8cJGta/wr/QBSb2dW74VGMGlAwSZ857vXcxEeWyMk6FX+/o4BjWJMXUe4 T4K2iq2HiPqzAKdm5pQmzJy3UIaZfBmmaPY5C3xgNUKTzUxJRVHHHL2tpSQiw4tlbPGn cB962GOyUD9/g+JUixaUcM8+zwu0C/AOO9fR3Gq3w7u9NTtfDHYfto6PVGDErhpxEreq CyEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V1Qe5HQt; 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 a10si551901otq.301.2020.04.01.01.45.38; Wed, 01 Apr 2020 01:45:51 -0700 (PDT) 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=V1Qe5HQt; 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 S1731713AbgDAIn6 (ORCPT + 99 others); Wed, 1 Apr 2020 04:43:58 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:24901 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731396AbgDAIn6 (ORCPT ); Wed, 1 Apr 2020 04:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585730637; 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=ghf5BEjuQ0VVHQ+GDvKrov7j0WF8psl/+NBJNRKsHsA=; b=V1Qe5HQtjm2dq4zWCUTLur75dkJKgPKJj7hSi/Dza5pcA56TEcss2vDrM/hp4pA9ajtV31 94/xtex4jqPFHEwooiR5o8BObk/5jKljfEmxqrCo8eu1mRfdgnTRXQ9zZjDY81OcVEgBkr EOMk8odtPs3HiSaxD1Z0FPk+LeEb9f8= 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-313-1z9lJwfaMpqepY7Q8IadMQ-1; Wed, 01 Apr 2020 04:43:55 -0400 X-MC-Unique: 1z9lJwfaMpqepY7Q8IadMQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 86CCF800D53; Wed, 1 Apr 2020 08:43:53 +0000 (UTC) Received: from ws.net.home (unknown [10.40.194.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 989B819C6A; Wed, 1 Apr 2020 08:43:49 +0000 (UTC) Date: Wed, 1 Apr 2020 10:43:46 +0200 From: Karel Zak To: David Howells Cc: Miklos Szeredi , Christian Brauner , Linus Torvalds , Al Viro , dray@redhat.com, Miklos Szeredi , Steven Whitehouse , Jeff Layton , Ian Kent , andres@anarazel.de, keyrings@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Lennart Poettering , Aleksa Sarai Subject: Re: Upcoming: Notifications, FS notifications and fsinfo() Message-ID: <20200401084346.kety7m2dwo7okeuk@ws.net.home> References: <20200331083430.kserp35qabnxvths@ws.net.home> <1445647.1585576702@warthog.procyon.org.uk> <20200330211700.g7evnuvvjenq3fzm@wittgenstein> <2418416.1585691663@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2418416.1585691663@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 10:54:23PM +0100, David Howells wrote: > Karel Zak wrote: > > > - improve fsinfo() to provide set (list) of the attributes by one call > > That would be my preferred way. I wouldn't want to let the user pin copies of > state, and I wouldn't want to make open(O_PATH) do it automatically. You can create cow object on first fsinfo() call, ideally add some flags to control this behavior -- but you're right, this way is complicated to implement and possibly dangerous. I guess return some vector of attributes in one fsinfo() will be good enough. Karel -- Karel Zak http://karelzak.blogspot.com