Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3161376lqo; Wed, 15 May 2024 01:12:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUEak+LryDHBrIy9s+dwMI8yg8QT/pTdlWesVFGM/QfG3NxWzD4MWnHnqzynUqyqsY7qveup6Vsu1OrvTvt2aW6aHbr6Gsxhr/Vedbvw== X-Google-Smtp-Source: AGHT+IG8JerLN6NJrRllmf+DqfiulEHVJM0kll5LM0Oqj+QG7DHf6Ue8wsHBKpbzzpIl0QyvoRVC X-Received: by 2002:a05:6871:d042:b0:22a:6ce3:d57 with SMTP id 586e51a60fabf-24172bb6da1mr18737407fac.25.1715760774437; Wed, 15 May 2024 01:12:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715760774; cv=pass; d=google.com; s=arc-20160816; b=bQJciZk2GRK2muCmXLtsiH9Msvn1l3YF33wgqEqvcYjH4srBb8MMAjSoFxVnRI04k2 oDLLfhMMmGCWnQ2ReGxtMszIiyHmUItK5AnNBGeC899yhgPdSFWwqLGjLagPNseX6E+m A0mVcl/Wzb2rNh9YHzxuAUHTxOaQJAHSNmWctsBBmX7NME44KSPvtscwUGc6RT2JQAmU o9g6hOF6o/Iwe+s3rY0czK9NQ5OIrin5CSqcd8LKK2uLod91x2CTy3gS/866e88webkL Kro43RFTvPQ2566klws5X7WkIb7w3J3Fi15bVF6mEawNkrCksuiTODEN0pU8HxCLSVtt UpXQ== 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=BDVDkIzsgfd9JM1PlQKJT3TOlWANe9HPhh9XiFkMnQo=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=HX0wJQf4UKbuj06qTxWaWGtooRiC/ffYsT460ytnfFz0AjToYETJK+2L44bh9f8CEL uQKAln2lBZPaOcawek8Zn3VIgqayNSscp11+pkV5q+EMCHhASVJmtOduLnReksJGN8Be HZm249Z8hUyUjdi1piFid9xRzXoVd3Zq0010OT2WskQDxruwowfxWWGDva9j4MUovS8r MwwLIXJHHXhv2DBc1aJJUjLibASwP0RmVsMy3HnQD7lWpi6m+jVSTyYy7v2QmdIlOzat Jktmfw6V11O1pySmcU4z9eK14cNJz0nUSonmo8dXf1NXkkmOF0X6PLGkbUGriA8qprmo +xJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tVwn63BW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341404fa65si13248644a12.889.2024.05.15.01.12.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 01:12:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tVwn63BW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179636-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CE066B212A8 for ; Wed, 15 May 2024 08:12:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49F644C627; Wed, 15 May 2024 08:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tVwn63BW" 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 755C848CCD for ; Wed, 15 May 2024 08:12:45 +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=1715760765; cv=none; b=N//QfI7GnlCFViy5AE0vuiAbtJalyU6yyDpuGb0i+veSQNHHVR8lv3Ybo0wtfaU8gcgGmQNVQ+uLwPztYXPWgIepf7+5872jn0QBVdK5YQSaGVpRy96QQ0D3+7hMoyC/jrq3SNSw0s9ZRnPDo1HXHkkwocT2I3+HA0Gm4kbYt1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715760765; c=relaxed/simple; bh=czMNo6nRJc7COieIC50Mp3lh9PWzedr3ZXgWeiNj9QQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bsJmPCv+eMDe8PhYgdPn/wcKN8Yx7KCBtgEOatQFqLvng3Gd+YxiixGNy8vWHRUnTxOfc1HKuXOa2QcWXAGpwqcB1mNNFnLXJxROm/5m07OsvYd/rLRC6KkeG7ZgiksUddYblqRz9/0fXBX5X41efqLTaqzyCiN782B7gyodF9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tVwn63BW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB685C116B1; Wed, 15 May 2024 08:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715760765; bh=czMNo6nRJc7COieIC50Mp3lh9PWzedr3ZXgWeiNj9QQ=; h=From:To:Cc:Subject:Date:From; b=tVwn63BWD9TTLpCLWIXhXveu7N22dfhKA/xrSzrZ8n3rgx2KgRIBrD/cq71vK96qG wkXUQeID48+sDk/Z0nBYMUzlXWCb7qKXQ3P7yrLYUtQbalGU3i27XfaYp52k7or0kh dLyVOHpVYCgY+zUBsxturwkZpCwpdQZbBRLUheGs8KcorZJebrI/c4YwO1PNf5BhkU q2bdxpmQGGCptamE7USW4h13xzeG3GQu0U1JE2VgLfXR9TTv9NEikFu6EIrt2BNx0H FAzNwQjCcpz6sAWlofkghwKStCpGMsALY93Naqj6y4IgBmjFdpF/li6+5hAz/19Ndc VPIS6X50bNYag== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH] f2fs: add support for FS_IOC_GETFSSYSFSPATH Date: Wed, 15 May 2024 16:12:33 +0800 Message-Id: <20240515081233.2463848-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit FS_IOC_GETFSSYSFSPATH ioctl expects sysfs sub-path of a filesystem, the format can be "$FSTYP/$SYSFS_IDENTIFIER" under /sys/fs, it can helps to standardizes exporting sysfs datas across filesystems. This patch wires up FS_IOC_GETFSSYSFSPATH for f2fs, it will output "f2fs/". Signed-off-by: Chao Yu --- fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index daf2c4dbe150..1f0f306cbcac 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4481,6 +4481,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sb->s_flags = (sb->s_flags & ~SB_POSIXACL) | (test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0); super_set_uuid(sb, (void *) raw_super->uuid, sizeof(raw_super->uuid)); + super_set_sysfs_name_bdev(sb); sb->s_iflags |= SB_I_CGROUPWB; /* init f2fs-specific super block info */ -- 2.40.1