Message ID | 20240205200529.546646-1-kent.overstreet@linux.dev |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-53887-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1159682dyb; Mon, 5 Feb 2024 13:39:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFR0dtt1Pgt/LSQnJ/Oc+FZtdrSs7eeh0Fjr5o+HWArRrQSOz/J3x76BBLxBprJjh0CvttI X-Received: by 2002:a0c:db94:0:b0:68c:aa0e:95bc with SMTP id m20-20020a0cdb94000000b0068caa0e95bcmr248402qvk.45.1707169174343; Mon, 05 Feb 2024 13:39:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169174; cv=pass; d=google.com; s=arc-20160816; b=AkLAqg5/rIIQBA+DoRQwJgcneN5BEwofipggLpube4aIkTQ8dFa9P9eX62/R9Mk05r T8M+omP3s6Wgxl/vocmvMwjvjJ8j46YhNHf/YEGXUB0R1x6hQW+/fDARTpL8tpKroDqO uM4lmC37nh0AGQ50+zzBlFOBpLVA2Cxov1I/622vwJsP/lhV0ZUffMx5MOInfndb0f0Y 18z1oJXBADscCd6rhxIH7ieQjsSvKVzbpuDGGdbDodw0rrISFj1IBE3NdJ6yblGJAFb9 0b9t6Gs2RCjrIqqLeR72SnJSZi0peLc2K/FCXRPFKoGYTQ3SOoM5P8WtFsMOgS9KQUIf 9dUg== 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=rjfywuBw5cUFIK4+Ro65Bo5b+ebxmt6paWcSViZJMAc=; b=kwK07yvkNOuCqkPmA1mOjC7++NODuYv03NpIk7Ml3fKnQbwCG4LlN46dRr7eL3WtAK F5RvED72venqYjm3nj4KwCN5cM7ZVeN6GIz3e70Aq5ntq4PfkPPUwTSzI9OUu+peC9ye qhgX+VSvl9AVWHl9swRLFVzkBhCM5MflboJxpvYzg0urCngLwitZCqA3CN5aqgBsdoYh TZGPOC+atzZM34idvJD8vVGCDzgH07Dzh06MgiZ2j9WUdReNNXgQeKCUozGXPiiaQjM7 xFdRsFZkEyitQvJeak24dR/VZOx7tBClSi8NQefkvax+1+LcZN/Y88+0j2Jb5KysiPbv tUYg==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53887-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCWEIcmXghRKdHGJeA2PSMWgP0O6D1JGp8B0VuPHGjrqe3J9W9fMiL5Kppn2HD7NFTWgDyGvYrijWygq0tmXOCDEJUDrdw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pc10-20020a056214488a00b0068c65ca8e3esi816532qvb.143.2024.02.05.13.39.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:39:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53887-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53887-ouuuleilei=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 22ABE1C278EA for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 21:39:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C30D12BF14; Mon, 5 Feb 2024 20:06:12 +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 <linux-kernel@vger.kernel.org>; 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 <kent.overstreet@linux.dev> 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 <kent.overstreet@linux.dev> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790096623936754145 X-GMAIL-MSGID: 1790096623936754145 |
Series | filesystem visibility ioctls | |
Message
Kent Overstreet
Feb. 5, 2024, 8:05 p.m. UTC
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(+)
Comments
On Mon, Feb 05, 2024 at 03:05:11PM -0500, Kent Overstreet wrote: > Hi all, > > this patchset adds a few new ioctls to standardize a few interfaces we > want > - get/set UUID Last time I spoke in favor of exposing the UUID as a generic ioctl most were supportive. But I remember that setting the UUID was a lot more contentious. If that's changed though then great. > - 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 When you send v2 could you please just put me in to. Makes it easier for me to pick this series from the list. Thanks!