Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3275809rdb; Tue, 6 Feb 2024 12:21:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+et+ZejIIfKA8U7uZRrN7NaE2Oj0mcvdSqUAkriGZevqEb/+DhHie2eb6D/vEAojpKAKe X-Received: by 2002:a17:90a:cf16:b0:296:892b:4c0 with SMTP id h22-20020a17090acf1600b00296892b04c0mr594645pju.41.1707250917142; Tue, 06 Feb 2024 12:21:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707250917; cv=pass; d=google.com; s=arc-20160816; b=FFdJe8o4mKCfU2UDt6ljbg1nBr024XlyqNjvZV5jiJ6BbdapmsOA8eMiAgIN4SlrVz 5tIsXW0MXwsIPePrb5sgjbQWqLTSIOZsp1sjUgmV0I3DsWUWih2E8eyb5AlMKUmoZ/+s 0aABJ8RRZ11tnIDJf3RUWlQY9uRLB/3MKWuQsnYNN8wjKZOq5fRsbG7rnH+i33q7kZDD GQ7pO8bOEU6bG3LIINzas7jwNk04Bklk9sLJSq/Q2j8/D7NYS1dQxfVNwXIrK/uydjth FdIXHawFjIlMISrwsWxbs+3JwoVnJjHHWnSOxKvzuVmprpwA1Y24Bcgge6l7Xj5wNNq5 Jqug== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ORZ3NxtyAsFtX+LQqgBHca7yU+LThn04BGVHp9Ql3Xo=; fh=znoZdO0t+NTc40mtZPVqbL0x64EBWDRLjEOiEut1Iv0=; b=fD92yvJ/Mj6ZbSN0HTbTk3W70uNE87pdglJKgs6bCfTfUCdm2makjlcmGPPhsYJop/ 4VUddjZvQnaQscgX7IG9Qi35w5xCd6+FycQ7qzWszNbUB18tkQRsJSlFHxk5z53APmio dNiGulDLwla8v8OD37WhM3Ue0YQXMUSJoQezpdoj/sCImVi14Eeoi9mPdhB+hWn/Tdox jpnU0I9eP4Q9PEbvYA8rvPNGOqq0IXYX1FAtG+s1pmR8tQHZ8qGP4GcgC4W//Bx8+q7t 9nfsWSqYpM+gUvd69uiyrCHkdyB5XvUvgI6AVopjfsdf23KzOeFYlGHfzzHclQQcpyDF fQRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fwScqX0m; 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-55585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=2; AJvYcCVAdhfMXpZgwKtAWuu/6naLEBch1hHVYlsSCEq8ajHeS26ifurQA0Jr3gRFuubK+N9NyEcfJkwTNJp/m9uI0AwMueAn9NolRiOR4WxMHQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w63-20020a17090a6bc500b002961fc98c6bsi1614093pjj.180.2024.02.06.12.21.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 12:21:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=fwScqX0m; 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-55585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55585-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0D273B25617 for ; Tue, 6 Feb 2024 20:20:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47D3C1BF38; Tue, 6 Feb 2024 20:19:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fwScqX0m" Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 CB8C71B597 for ; Tue, 6 Feb 2024 20:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250755; cv=none; b=VvW/7TlsloSmJ9ekpr2E8QnSoSTffCSFLClgzv2lJslm1B/WRnJKkZ0e9aPG7veQXa52ZvXT85z8Fi9DVV5t04Zm/27FePN5A85qMXJjWf3tT6INRdWoL/kn+/X8PeG1HE+K8tobOSI33e9zeizOWYBDgV+DgHUVvuZ4EGGZy8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707250755; c=relaxed/simple; bh=BmbZGsFxwakjn0IikUsjUWm3IXpJHfHD1/as7Xt9Pcw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cw/EBFZPJJ8mRim3UzHcuynp2xJcAuvxkIcWiYVTp9d949FKAr0N5duj4SBC/vDnE7cQ4Qqxgc2CyEArrmRCB0S8A4i0MfG4GiMEaN2pR4qAO69g6BUsHYXBhlnTBOlTt3GTHQvvu6OMHUblTOywCDpMkfAiUwB+y5boSMsh104= 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=fwScqX0m; arc=none smtp.client-ip=91.218.175.179 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=1707250751; 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: in-reply-to:in-reply-to:references:references; bh=ORZ3NxtyAsFtX+LQqgBHca7yU+LThn04BGVHp9Ql3Xo=; b=fwScqX0mnWDNlYrU6EpWlu3bS17zj2d/+yx3GJV7H8mqYcnwQLUTmo0E3m/Lxpforau8JM O+M+wuxH0ZwvKEc+AP7mBE9c3gA2HhDVpS0NAZHr+sq1enlGS+NtJ+yDqcmeBxzVjNW5BR M6CJaUFkFsWGlVLN1DWOT3IYg+QzLKc= From: Kent Overstreet To: brauner@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet Subject: [PATCH v2 4/7] fat: Hook up sb->s_uuid Date: Tue, 6 Feb 2024 15:18:52 -0500 Message-ID: <20240206201858.952303-5-kent.overstreet@linux.dev> In-Reply-To: <20240206201858.952303-1-kent.overstreet@linux.dev> References: <20240206201858.952303-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 Now that we have a standard ioctl for querying the filesystem UUID, initialize sb->s_uuid so that it works. Signed-off-by: Kent Overstreet --- fs/fat/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 1fac3dabf130..5c813696d1ff 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1762,6 +1762,9 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat, else /* fat 16 or 12 */ sbi->vol_id = bpb.fat16_vol_id; + __le32 vol_id_le = cpu_to_le32(sbi->vol_id); + super_set_uuid(sb, (void *) &vol_id_le, sizeof(vol_id_le)); + sbi->dir_per_block = sb->s_blocksize / sizeof(struct msdos_dir_entry); sbi->dir_per_block_bits = ffs(sbi->dir_per_block) - 1; -- 2.43.0