From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC9043C6AE; Wed, 22 Nov 2023 10:18:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PqaC1v2D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3D77C433C8; Wed, 22 Nov 2023 10:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700648298; bh=gp/k8axTL80mLxTYMaP+zB2m9z+vv0jOyiBCQflp7F4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PqaC1v2DxXSoXlJSFnoohu+VPku4+2AH6UvaY/VxcsIbxOvpYQ52Y8VxKRxGyrbKV /mhK362xJT2nIQ0gQdv0bXr9Mzy/SA11wcAh5VM7bXDosCtQLWzcww3TLcVhhm/dRi 9U5NrM++/wOdhi+urDGBl9esWuwxCHKiLF67nXsgehtNl+hy7nRWgw5mYzlboBUD7j pI/xKV+8IoLvDI9906VxnuQ1V9aVT9NqtSQC/fLhOoZDuzcVnIHHosyjSC7CFwWryU pZmRjgtszs+sxsqr8+msZYRLhE2vQLc6gkVokAhv2BAacK+AqBAcLWgffN3iW/vb07 s786vurUs7m9w== Date: Wed, 22 Nov 2023 11:18:11 +0100 From: Christian Brauner To: Miklos Szeredi Cc: Ian Kent , Ian Kent , Florian Weimer , libc-alpha@sourceware.org, linux-man , Alejandro Colomar , Linux API , linux-fsdevel@vger.kernel.org, Karel Zak , David Howells , Christian Brauner , Amir Goldstein , Arnd Bergmann Subject: Re: proposed libc interface and man page for statmount(2) Message-ID: <20231122-busspur-pfoten-6644c819c12c@brauner> References: <878r6soc13.fsf@oldenburg.str.redhat.com> <15b01137-6ed4-0cd8-4f61-4ee870236639@redhat.com> <6aa721ad-6d62-d1e8-0e65-5ddde61ce281@themaw.net> Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Nov 21, 2023 at 08:42:17PM +0100, Miklos Szeredi wrote: > On Tue, 21 Nov 2023 at 02:33, Ian Kent wrote: > > > I've completely lost what we are talking about. > > I started thinking about a good userspace API, and I'm skeptical about > the proposed kernel API being good for userspace as well. > > Maybe something like this would be the simplest and least likely to be > misused (and also very similar to opendir/readdir/closedir): I want batch retrieval to be possible with the kernel interface. That's important for userspace and was requested in the LSFMM discussion. I would like to grab the proposal to return the last mount id in struct mnt_id_req. In userspace it can then easily be implemented the way you proposed below.