Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2663812rdb; Mon, 5 Feb 2024 13:39:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiGlP6P8R+xMr87wF9y15bmot7qGTSTRM/+DY2lbgK5MqmX01oPmQknZFe3AJLGXXUdJzc X-Received: by 2002:a81:ac26:0:b0:604:3e53:758f with SMTP id k38-20020a81ac26000000b006043e53758fmr988993ywh.7.1707169187799; Mon, 05 Feb 2024 13:39:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707169187; cv=pass; d=google.com; s=arc-20160816; b=YqajtsVNdDR88Yv2rJekyNRCIFQhgJSQzUQqBvoq+H0u2V7rsl+1ptnDND1olI68VV FUf3JhhuLEiQCDwp3pQCPYsYVU8h5jFGmQ0TAIpKhRnxGEkfFvsD6UYjXtiYiXIrGygm PhuVx4nyuJb7Npe74fxwfQH/Iqn+x3Flq2JnXYgsitT4jDAALpvyyyKJng4uodZEB/7m zCOAz2fp+FcDMvXrOwwsVZOrG+f+DB8url3J1yXTHaCBl+YTQoheRASN4IXW/gw2j4Jf rMcBstlg3Otyas8RQSrw36P7BZLFQJMqbOyFWi1qJeLMG/+ctUOfChiYKwDQhwgEHVLq S4pA== 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=+Y3gjAfbNTQAYItYsU5COE7+yozdE8QNyrcmsyi3W+A=; fh=gTCuz0wPEmFIvaD20FcCo/yKd/wVtt8De2X1qHREY1o=; b=0p+PXZlOuofwVPv6XKwLckK1awVpucu5rteYl6c+N6NeRzH8pnV0gR+CXtamHBU4JH +x3QmiAI5mL4haAQjbNsgmoQ9+a6wZGSFtSsSuykmT+UAN4PZ+NK9qyrYF2XXBVToGpm FdeswWfQiB0TTdN3uWtaQROaT4trfYutYraopyOKvl4wXGtmoLHh9fRsKBvrsjsz9FCl k6Kj16wfodBdjTomutjI5I1Gx650OpwsVkEE4exrJ0RrMRP+CYPPpfImzu7PjvqZ+Q4y TfGvdp7Bsu0tsBtsxn2BztMtyqOhhseXbX0U9gmwo0RYHCLiLyD68lQa6Moa/Zc+cnSF 5CpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Dg8R9kdj; 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-ext4+bounces-1117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1117-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; AJvYcCV2Rrrvdwas4irr4d/UAmk+s6U0oABY2XzRM7GyhvDEhySxJezeHiI3xCl8oV17yMvOQaiF7PZHrivjfpCH9ZsDzb5V1kUYXhNXNwOJrQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p14-20020a05620a056e00b00783df788239si748401qkp.146.2024.02.05.13.39.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:39:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1117-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=Dg8R9kdj; 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-ext4+bounces-1117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1117-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 6FAC41C27874 for ; Mon, 5 Feb 2024 21:39:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 233B012A15B; Mon, 5 Feb 2024 20:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Dg8R9kdj" X-Original-To: linux-ext4@vger.kernel.org Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 80E3B4F1E9; Mon, 5 Feb 2024 20:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163572; cv=none; b=bWavXltAMxGfcQMVNDlSUGrDk3xurem5hAmeAcoEmqeN5nGCeua/DD+m6n2fm8sJCuwaHY9rxX4akpmR8Lf7FcC5mOqM6BPhfPAUgGAs2/cXRQh5t94a/SuPJVwSk3A8QifJ8XSsnu/YHD7F/lSDJW23Syu+Y/vb4bwMzQ0yApA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707163572; c=relaxed/simple; bh=e2lTROAYcoM/HDLzlNIvyaAd2xWkASoCHOPzvyTKoeY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VIbVY91ZubVACPVf+IBwjGFa2/F+3cujDG21iszwN9jABXxwzxEwOISi3ry+2+q+OTPq/jWZMTHyfDHgQtR/UIYeK+Ty+QVL0qoPypDYt7ODLnleU2iFeRO8bNj8MXdzLZrW4Wbkr1WVN4CrDvFzIsIEKeV9ORheSQNpiZPMwOo= 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=Dg8R9kdj; arc=none smtp.client-ip=91.218.175.186 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=1707163567; 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=+Y3gjAfbNTQAYItYsU5COE7+yozdE8QNyrcmsyi3W+A=; b=Dg8R9kdj58O0ZqQd8Z7H3MJ/Xo+17XcsMUPoyC294HD/6wNiULMRl/SvP5MfWcctiuI5Io t6CsU8lFKiS3p/H+xykTaZ3BnRI4WQGh1bEXwdtcL+5YOwxMPZjB8OrKC4sytClnNQmBdQ OH6F7iJCR/fZItMA4ZecGTa8HqOC7p4= 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 3/6] fat: Hook up sb->s_uuid Date: Mon, 5 Feb 2024 15:05:14 -0500 Message-ID: <20240205200529.546646-4-kent.overstreet@linux.dev> In-Reply-To: <20240205200529.546646-1-kent.overstreet@linux.dev> References: <20240205200529.546646-1-kent.overstreet@linux.dev> Precedence: bulk X-Mailing-List: linux-ext4@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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 1fac3dabf130..a3d3478442d1 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1762,6 +1762,10 @@ 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); + memcpy(&sb->s_uuid, &vol_id_le, sizeof(vol_id_le)); + sb->s_uuid_len = 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