Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp453011lqc; Fri, 8 Mar 2024 02:19:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLojwL9dtdUBoxuVCGJC3GhAknWm66gXFyPa+gENjstY8bi3JTHGX/sp8gYfpCl/xWzxnaew+D12+tKy5A/YuGMr/nN7uc25PB/hadFw== X-Google-Smtp-Source: AGHT+IEaKRgiwS1sIF+UmNLl2LZyiUw7/k59Ca+mpAvCU9F+Y54Jp8MfGql2NK6+3i0P2QY8nhJ+ X-Received: by 2002:a05:6a21:32a9:b0:1a1:72aa:11c1 with SMTP id yt41-20020a056a2132a900b001a172aa11c1mr4911383pzb.27.1709893186828; Fri, 08 Mar 2024 02:19:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709893186; cv=pass; d=google.com; s=arc-20160816; b=YWuKjVHd+L8AQw8UqyC8nPJDv41QKgcoYB4zRA5JKdXFpsd0owfQcPFNOIFASbvO2Y 5e+hiJkxOv5keFGc+3bvEUQS/504olXuxgWi94nvuJluyaUCXogdUeugznozf8g1UXtx B13ujmeizRhxbq3tXtUB4HrOsvfdLOnJC6VKzj+ohtI0U3ChhBKC7epOGhaIIqSvjk6I sK+HzEHjtdQXglqOTri4DbYjmpNlGVKPNvQsmsOD+NUJvE6CJ48ZEsywKkA4cJU3hBvd WQ1l3tS0EsVQeIrSDp942ozZ9RS6eiTpvx6g4BMoN4sIAv/tcR/aWpEySa2dI3eZZT8N Z5zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=SBUaVDTFxbWdTRIfhaAJ5hWYi7UFSH47aO+FaxvXSqY=; fh=qDZ+YnS9HJbCVOaeWFr2FnYZt7eE+vt5IJIDIlhBdxU=; b=XAZlqO5afPOa2oXTAdZhEuOsAgeboyPMlISfyqwkMgXNL3XBz6Er4zdd58GSS8lQu8 5W4XjKnSTkJldWgeeUdw1EAaZILrK1YgB3AdOOEb/h8Fel75r6A9W5CjPeKp6VHZPkPx uE/6pxRV/SFhJsOgQ7CpE2gPcy1ze1dx3CT1uel+2RF961F+5+VKjUOs447xtgJsbFOi p+WwEkzuz9HSERwmGntnX+aV3PK33ZmzibUHbbEKgLfcrj8issVYCGDJE/AePoDNB4Sr ZPz8ka38OCs6GAdyT3fWeYXTLlrF6U2RFu6i4wW22KqVsAbUGW/etmwmC5t77WmpwCZB uy3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8bySy8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p12-20020a056a000b4c00b006e5002dadfdsi16106124pfo.101.2024.03.08.02.19.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 02:19:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q8bySy8z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-96817-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96817-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 811D9282306 for ; Fri, 8 Mar 2024 10:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0AF654F8D; Fri, 8 Mar 2024 10:19:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q8bySy8z" 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 E84AC54BC9; Fri, 8 Mar 2024 10:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709893158; cv=none; b=IfWYPrt+HqkC+Gq21bhMzgYcyShWXggeXR+lb9Uv3cDV1bmGUxAVBCRuEkDvxEVUX2VFR4c5PEoQ4dg1BH6M1Y7CdVAPsSzt3ng7i7tFY7qYZPOVNVnRtleeOCL4+Ga34iTWpsifsckH8jsXiPq3DLQa+ZqtKRpN5wecupXcxVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709893158; c=relaxed/simple; bh=E/Q+GHdbHP3Gvf5ExMiosmeZbCccda9G4PEoZsYPqh8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DiQoCCZQ7yxF4zqJgXi4t5mLEeCbO/LX+YWD0EqxHdk8QojhbYsr4Z/IzVAlLqWRHDbC/OIYpRIqnPKOjcT2k4qZsuNjBYKRj59b7vVDkmt0U9XOkJxvAo2GihatIZUZkDFmSbCEcWsOHkOr5Q7bINt8RD6C1o23xRA7pPH8ZcU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q8bySy8z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BCE5C43394; Fri, 8 Mar 2024 10:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709893157; bh=E/Q+GHdbHP3Gvf5ExMiosmeZbCccda9G4PEoZsYPqh8=; h=From:To:Cc:Subject:Date:From; b=q8bySy8zYBiGxzpPlzYyiyuIAl8sVR6k2uiDHCVmDcVxU7p+mF9C7u3gOqPAsfM+C l73E58AO3rLtOmjEGbker3jxpIyGiMl0TWr6S4qrY4ePXCsF3YfzLHK/3xwbBys4lO 0xulfy+9wn+SbiuIAxbrFATtCt9++1bagtZmzuHBt3ietOujJ/+dMhKZPoKcuVSTYC HSLfjc4zm0JjxJUr5AsSYTAGxf10qhIkIpczP+l7dib2fL09yztaIisr3QenUNbMSt 7kzwsGBcBuTNTsI4K5rPewp69udL8PJaCSetqeaKELObvNCYPF1LtQQP8mw8yu09c0 W3XkL4X21mtSQ== From: Christian Brauner To: Linus Torvalds Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] vfs uuid Date: Fri, 8 Mar 2024 11:19:05 +0100 Message-ID: <20240308-vfs-uuid-f917b2acae70@brauner> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2860; i=brauner@kernel.org; h=from:subject:message-id; bh=E/Q+GHdbHP3Gvf5ExMiosmeZbCccda9G4PEoZsYPqh8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaS+eib3319G5MeaisSE5eXzq+2WLd+zctqnIpPjzLuOb /t6ymCxYUcpC4MYF4OsmCKLQ7tJuNxynorNRpkaMHNYmUCGMHBxCsBE2Ocz/GafWLmJ7dr1Dd8m f1jKv/nhtlDpuVH7ylXEz12WPvBYLPwEI8MJ3as936eUsvsGmgTrfX5UyPLylajL72s7HC59PrH +5DRGAA== X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit Hey Linus, /* Summary */ This adds two new ioctl()s for getting the filesystem uuid and retrieving the sysfs path based on the path of a mounted filesystem. The bcachefs pull request should include a merge of this as well as it depends on the two new ioctls. Getting the filesystem uuid has been implemented in filesystem specific code for a while it's now lifted as a generic ioctl. /* Testing */ clang: Debian clang version 16.0.6 (19) gcc: (Debian 13.2.0-7) 13.2.0 All patches are based on v6.8-rc1 and have been sitting in linux-next. No build failures or warnings were observed. /* Conflicts */ At the time of creating this PR no merge conflicts were reported from linux-next and no merge conflicts showed up doing a test-merge with current mainline. The following changes since commit 6613476e225e090cc9aad49be7fa504e290dd33d: Linux 6.8-rc1 (2024-01-21 14:11:32 -0800) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.9.uuid for you to fetch changes up to 01edea1bbd1768be41729fd018a82556fa1810ec: Merge series "filesystem visibility ioctls" of https://lore.kernel.org/r/20240207025624.1019754-1-kent.overstreet@linux.dev (2024-02-12 13:14:21 +0100) Please consider pulling these changes from the signed vfs-6.9.uuid tag. Thanks! Christian ---------------------------------------------------------------- vfs-6.9.uuid ---------------------------------------------------------------- Christian Brauner (1): Merge series "filesystem visibility ioctls" of https://lore.kernel.org/r/20240207025624.1019754-1-kent.overstreet@linux.dev Kent Overstreet (6): fs: super_set_uuid() ovl: convert to super_set_uuid() fs: FS_IOC_GETUUID fat: Hook up sb->s_uuid fs: add FS_IOC_GETFSSYSFSPATH xfs: add support for FS_IOC_GETFSSYSFSPATH Documentation/userspace-api/ioctl/ioctl-number.rst | 3 +- fs/ext4/super.c | 2 +- fs/f2fs/super.c | 2 +- fs/fat/inode.c | 3 ++ fs/gfs2/ops_fstype.c | 2 +- fs/ioctl.c | 33 ++++++++++++++ fs/kernfs/mount.c | 4 +- fs/ocfs2/super.c | 4 +- fs/overlayfs/util.c | 18 +++++--- fs/ubifs/super.c | 2 +- fs/xfs/xfs_mount.c | 4 +- include/linux/fs.h | 52 ++++++++++++++++++++++ include/uapi/linux/fs.h | 25 +++++++++++ mm/shmem.c | 4 +- 14 files changed, 141 insertions(+), 17 deletions(-)