Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp827582rdb; Wed, 1 Nov 2023 04:13:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUAfVOoLYkSQLxt5F84QXnn87eUuIS8hdVwdUXrnA+J7xPZmSwYj51L3fz8u2ppTOfmBp8 X-Received: by 2002:a05:6808:649:b0:3b2:db24:6384 with SMTP id z9-20020a056808064900b003b2db246384mr15649854oih.38.1698837222414; Wed, 01 Nov 2023 04:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698837222; cv=none; d=google.com; s=arc-20160816; b=hlICVI/jKullgfwij30o1iJdTXUBeQ55lUZGufDsrFzX72gsh7wGw+2O7Z4XcT/JhQ VT6w9TTFYUA9agwdyJ0W3Ez3joByfzatIu2iXfE0IHnFl/eiooFkdERukKJkMi3HZ+MP NcyYNmf2VfM6H1ZPkKdKf9gfpCTuOqZ4u0dHLxyBQFL9eAb1FzN/VD0zTRVT9hvKoQ7q 0BMacCEDaHlftxZ5NKhtkSThOwohqGznGJdW1Aks3GSI2OqOeuZkQ7P8wAtiKCVsvXzU vFQgkUnt4+05OOfpCjmXU9GdrK7nrXYdE53cK2bhAdE8Wb9V5q93+iSr8lTbdktV0HQB gpiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5nEqARriEJu9BlV2yrioblRhMfEWBcBveKo9hhl8UuU=; fh=+Uar5ommS46kEg47lw0bXrqwBW1/VKm8FoVuuMLpzr8=; b=umg5UW2qSY4EoYa/EVnVxbpliLIFVW4lqdSXKXhR7X47PI4oSbPp2JJBnZS5rsiVuN U+Az8KVGTErRA+XbIhMx0uq4KsL0kYnRwKwNPTJI/klOcBJgBwW9MCe8XbNCARIZKLYO mMAXRQ8waIDmwu+7b4F8b3MkfmTgz8tbBIq54iLqpQwAae9Q52YR3H+teceWfKywRhcw JdJNrUedGT0fnVRuuow4DJwJ/K7EcOw4nYBL6RA4qlkVk6ky3IO5oga1Wbxx4emRSDFu 4S3lcEPSc9CxaIvicFAHZ9qjS7ptgARKDCDIGhIoO/XK04vctU0Kd4j2mA0AxWxM36s4 8vyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sy4Rxi2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w63-20020a636242000000b005acd3068202si2753726pgb.552.2023.11.01.04.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 04:13:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sy4Rxi2O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E5EBD80D31F5; Wed, 1 Nov 2023 04:13:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231526AbjKALNj (ORCPT + 99 others); Wed, 1 Nov 2023 07:13:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjKALNi (ORCPT ); Wed, 1 Nov 2023 07:13:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A450F7; Wed, 1 Nov 2023 04:13:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5860EC433C9; Wed, 1 Nov 2023 11:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698837215; bh=N6UVVns/VSWJvvvj6Jyp/eMunRO6kModQGgkQaRIaQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sy4Rxi2OPF+XMY89X0x7G4Df22/7CmUQqn3N+1UFEGdivQpNgTMq7V0eFIjbhlHy4 NJ+SneIU7hLdENdE8i3xuGqt0DWisuf6j6dMTpH7rt7+f+c2HLH/QpGZmSSy3tDHAo jkWxzsSGXF/Iy/Fvavj8jPNeeb2Hjqn3mLGNLuoWIjzIktyHko0WNwy7mYWoooIl2x RqL8ijcizyWd4X8B4FZ6xFYCT5zjiKLKFbOmKaggI1Nb8kxSM5Sz8h+dl8NYx6VOAr AJ3E120jL+X3i0qStXrxsrApc40u3MiIjSxus9h6cZ4HXOQZHOtSo4SzklF7i/nZHc NuRLHu3IY++mg== From: Christian Brauner To: Miklos Szeredi Cc: Christian Brauner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Linus Torvalds , Al Viro , Amir Goldstein , Matthew House , Florian Weimer , Arnd Bergmann , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 0/6] querying mount attributes Date: Wed, 1 Nov 2023 12:13:22 +0100 Message-Id: <20231101-urenkel-banal-b232d7a3cbe8@brauner> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231025140205.3586473-1-mszeredi@redhat.com> References: <20231025140205.3586473-1-mszeredi@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=2563; i=brauner@kernel.org; h=from:subject:message-id; bh=N6UVVns/VSWJvvvj6Jyp/eMunRO6kModQGgkQaRIaQ8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQ6GZ289OXCtbZoBr++dRPd5U8zfzd2E9PQv/qguNnzmCyb I9fzjlIWBjEuBlkxRRaHdpNwueU8FZuNMjVg5rAygQxh4OIUgImsX8nI8G7S4mBTpv1PprLka33dfK jgxsVD9lziqkscTjw5GpmzpZuRYbnXm9lXvtvfKju9Ii6KS9eKb9+Pl6nfWMLjLzsILdXeywYA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 04:13:41 -0700 (PDT) On Wed, 25 Oct 2023 16:01:58 +0200, Miklos Szeredi wrote: > Implement mount querying syscalls agreed on at LSF/MM 2023. > > Features: > > - statx-like want/got mask > - allows returning ascii strings (fs type, root, mount point) > - returned buffer is relocatable (no pointers) > > [...] I think we should start showing clear signs of commitment to this. In absence of strong objections I don't see a reason to let this rot on list until we forget about it. Maybe this will entice people to provide more reviews as well. It's all pretty close to what we discussed at LSFMM23 and we stated that we aim to merge something by the end of the year. Let's see if that can actually happen. I don't have huge quarrels with this. Yes, there's stuff I'd like to see done differently but nothing I consider blockers. So let's get this into -next once rc1 is out so it can get a full cycle of exposure. I've renamed struct statmnt to struct statmount to align with statx() and struct statx. I also renamed struct stmt_state to struct kstatmount as that's how we usually do this. And I renamed struct __mount_arg to struct mnt_id_req and dropped the comment. Libraries can expose this in whatever form they want but we'll also have direct consumers. I'd rather have this struct be underscore free and officially sanctioned. --- Applied to the vfs.mount branch of the vfs/vfs.git tree. Patches in the vfs.mount branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.master [1/6] add unique mount ID https://git.kernel.org/vfs/vfs/c/ec873c3baa0c [2/6] mounts: keep list of mounts in an rbtree https://git.kernel.org/vfs/vfs/c/f15247ad234c [3/6] namespace: extract show_path() helper https://git.kernel.org/vfs/vfs/c/6e5f64ac5382 [4/6] add statmount(2) syscall https://git.kernel.org/vfs/vfs/c/edf3b2ac1bd5 [5/6] add listmount(2) syscall https://git.kernel.org/vfs/vfs/c/4412ca803757 [6/6] wire up syscalls for statmount/listmount https://git.kernel.org/vfs/vfs/c/d0a56e829d2c