Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2663509rdb; Mon, 5 Feb 2024 13:38:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdz2246dxaLdbnUErhSetWuu+iQPuxbgtqSfzcgflPQGCKCPpKwtMLm9h7+htKYafaO+vg X-Received: by 2002:ae9:e209:0:b0:783:7e10:c524 with SMTP id c9-20020ae9e209000000b007837e10c524mr334348qkc.28.1707169137057; Mon, 05 Feb 2024 13:38:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169137; cv=pass; d=google.com; s=arc-20160816; b=oSzyrcEKNdCMYyCYVl0jjn/ihOsNgddrp9V/javFD9mpdOr0kmti+Pgn61oRrQ5eUL aD/5Ru+roJbecoz2Yf/D6nlhLlEgNxqe3X41oHGUm1msGObxkjgdujrjJCjQYRt6+TiC 9cgRkp8N/ET1KLsJKatYr4z8Vm3rlb98ROMfgTghHR9eZTXRR8Cixe9w805qDdfXUPCT XQcgYrY8Q+da73M5WBIQ/ugV9oZpS/PkKOrKxZ/wpVxPrl0ZlK+7uBqhuYsjTU/8MQNA L3STGqKumzPvHyoXRvfakiik5yTPkzFVZ8JsUZ9Q2stUIcXfJmoagc4h+B0qgr7vhZ0V cbQw== 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=y0S45WMR1qJRBOTa9Fq+vJw0l8t2/n0Fhw6eQ4IEkC0=; fh=sL4MCblVvI9ryMqLf825ned3a6QBTBjecztlrRk/OJ0=; b=fjKLvT/hVcx1NE02o/OovjSJWZOV7hPmFgeCc4yD+MI9voGA1GGvT4Kzuw8ydhDFtI TTrCQj6xnCpQPgtu35u+tC+LzKPjzTpKJ0hSLwehqxIEo1mo5neDM744BulOBgzwMOhu yCQHxMLLyd8TGV4AvQ8qVx0VWyqTgkmMhELx7Vr470wnA1MkHg3hkhutFNDh/HNp9XvX A76BKG8Ph3pdpRQrgbIk3zCGXqoa560gYgM71cR/AI6F2aysQfPBjx5R+3ZJ+w62VMwj o+y2Ocf2RV/HTa1NquEfqbhgRR9/TIduF6MWjoaitjVxp/1Tz3RyLhGMRFJW5Lym7ks0 rOfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mxIalyj5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-53887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCWJ1BmeJOEflvXEBw7Hc782P39jUaxUA7YCVOlQaLZYhNbyIb1bIcsXLINMXNxKIj6gPMQTyyXDyPAsLqzJ/khz4SX8fOaC4EotU8ayRQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a10-20020a05620a066a00b0078535dd3b0bsi733891qkh.730.2024.02.05.13.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:38:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mxIalyj5; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-53887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8DA3C1C2784A for ; Mon, 5 Feb 2024 21:38:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EE3312B148; Mon, 5 Feb 2024 20:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="mxIalyj5" Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (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 B701112A15B for ; Mon, 5 Feb 2024 20:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163568; cv=none; b=C5GwZP9kbodOZ/S+xSByzHgIj3lMqhdeECsV+yFilrM/FdoyCgiUVwB/kYhFErSsVfTSdZDBFJQGp/oB72Rya9VeqLeyaLtD+J4t/oyDIH2KRc2qKD00FZvGaJUlzfB0RqKSdAOdTlFM0PS1M+4/ei0fqWVU+bq7xoKa7XeeqPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163568; c=relaxed/simple; bh=ZzpfRJLNiDFRXBfUCaCz/ALUxgqYKP7yarQNXpLqifw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oSJ9Xa52Db87CrNGfH+zfNjVUzU4IorNVFUetTjIPtkyE3YNONsoFSpy43OWzme/4EQJYm8+jVq4v9duV4l46Z78fqFlINGmd1ARYNXQKGkDSQySELMG5nc2sGQnKxyrAjeH2L122vhuWkZRc3oNtKYOtdkGKjHsSDqwdzG4V5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=mxIalyj5; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707163563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=y0S45WMR1qJRBOTa9Fq+vJw0l8t2/n0Fhw6eQ4IEkC0=; b=mxIalyj5f8L31oBRKlsLNd/rlDjR6y+USSkDnz53a0/c/mhd3QPBRyo5n/+BZ4dQNWYY3/ Jd+FxdxI3gXwetCA9FdGyqd63Sgqiyd6vcSFLH6R+qVp0TUFxI/wwWPD18xSmU57AqLWRY uK/PZfhJ10AFjXwWre9cYCKA9duawQM= From: Kent Overstreet To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org Cc: Kent Overstreet Subject: [PATCH 0/6] filesystem visibility ioctls Date: Mon, 5 Feb 2024 15:05:11 -0500 Message-ID: <20240205200529.546646-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Hi all, this patchset adds a few new ioctls to standardize a few interfaces we want - get/set UUID - get sysfs path The get/set UUID ioctls are lifted versions of the ext4 ioctls with one difference, killing the flexible array member - we'll never have UUIDs more than 16 bytes, and getting rid of the flexible array member makes them easier to use. FS_IOC_GETSYSFSNAME is new, but it addresses something that we've been doing in fs specific code for awhile - "given a path on a mounted filesystem, tell me where it lives in sysfs". Cheers, Kent Kent Overstreet (6): fs: super_block->s_uuid_len fs: FS_IOC_GETUUID fat: Hook up sb->s_uuid fs: FS_IOC_GETSYSFSNAME xfs: add support for FS_IOC_GETSYSFSNAME bcachefs: add support for FS_IOC_GETSYSFSNAME fs/bcachefs/fs.c | 1 + fs/fat/inode.c | 4 ++++ fs/ioctl.c | 33 +++++++++++++++++++++++++++++++++ fs/super.c | 1 + fs/xfs/xfs_mount.c | 2 ++ include/linux/fs.h | 2 ++ include/uapi/linux/fs.h | 21 +++++++++++++++++++++ 7 files changed, 64 insertions(+) -- 2.43.0