Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2232908ybl; Thu, 29 Aug 2019 05:35:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHZXXUY3zlEumjNl8OAWyiBUxLvzwz2gwLMcpgiTwSRkZMXCDesYka1uH646ZwSGyHVeyH X-Received: by 2002:a17:902:8d8d:: with SMTP id v13mr9587919plo.137.1567082129351; Thu, 29 Aug 2019 05:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567082129; cv=none; d=google.com; s=arc-20160816; b=jSG4j5P3Kb4gRlnPQNPHznrSI53TkpltHBDC3B58kaxbo/dbLrSWZ2q0DhlgqPEfRK 1nmLYBFF/aNfa2nCcOBBY7zejuqs+UIaeQSM3Q8ZbmB0TWPYB6N++9Ok9whn1Z2CYiRH 6ycpcZDvpji1b29v7nDoLSLetr8l5ifWPMxKgr/CVX31kDBs/ZJWVd/nu8oN1EjN6h32 Xbz4/JA4IEme51mTxaANvH6ut4K2PLTWcsJtrBqAR9SCN5U8RCa+qu0a7lxFOhEZszNL UlnWvj07EDCSh9tqo2y8djPR0Km5fGU6Dn7uQbMHi1mnEoQwP//TEVxl5A7e/DectO3k pP7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from; bh=ORBeCnNYXTlYaOX4yJ+TSR4xwn2mIsSRwMfswcxkhZM=; b=gGGpB8XlK0XSRqQv0Y+5BIBN/j5IyeZ5M9AzxZnSRmW72dT4pAlVgPSbhdU3ESLh8z hR85AUsYWJkChUhN+g/rjOwLeCyH+ebOLHFvlZw4Z3F73xBfGzIqeIiSxL9r2PbuRSoI Mb8dqVTkyekQdIbZsE2J/it9kTC01IY7CnhyAzvQMArqIf0T/uRyPXCFphL4VHu4jLCB F6HSJ2yiiyfNAcuJdw6yZC2w/W2VnZFpVqoPEUXswf/wl5U5EOZxsvkF8tfgawcIfLXG bXkKOubOaIWiHhZ0sOdTlDVcvFZL6v0eVSRS561DDuMkUuzbAJ39K0DGfA/Zd8ENt1PA LJFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si1808540plo.251.2019.08.29.05.35.11; Thu, 29 Aug 2019 05:35:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727189AbfH2MeP (ORCPT + 99 others); Thu, 29 Aug 2019 08:34:15 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:58190 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726950AbfH2MeO (ORCPT ); Thu, 29 Aug 2019 08:34:14 -0400 Received: from mr3.cc.vt.edu (mr3.cc.vt.edu [IPv6:2607:b400:92:8500:0:7f:b804:6b0a]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x7TCYCON004876 for ; Thu, 29 Aug 2019 08:34:12 -0400 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mr3.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x7TCY7TE001177 for ; Thu, 29 Aug 2019 08:34:12 -0400 Received: by mail-qt1-f198.google.com with SMTP id i9so2173052qtj.2 for ; Thu, 29 Aug 2019 05:34:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=ORBeCnNYXTlYaOX4yJ+TSR4xwn2mIsSRwMfswcxkhZM=; b=rC8VPYRMMtl7c7uR2y6QQXWbyPluRvFR+mW+ys+WBpV3UkXJviwAodNqiYzDCCLW7y R63DeiMGdLlalJw6iI6IP+WaekuqRq5g3Rt+L4i0VzAcKIoNME0UG/PinHXJvvCcwm4g 7CN6oGoIkN7SNE9VwM6cAOFoW9VFmsXFw5SxBssPnReLqYQsZlz66s6dsuJ7JGh1fPwM Gxm/XXWgIj8CMNJfE6palmjueoUWDlPIqI40NDPW22GeiK5BKa1Lhs6yHIfEBKFrjDjm bgJ9A5hlPfMzH416CrID6toFwws612Wl4+HSvRdCKO5NhBybftTX2yRIgOh3OpOcgk6D cqiA== X-Gm-Message-State: APjAAAWVyx7exj9d5ynu8pCNfTlNWtZuzfLzTWgkkUusveLx79y73APX UsInqJKRsm5ucJT1g3Ii2hm202G3ZmemSlbsbJOjEQuVemmrBsOobJFpkT7uBS2WPpnKo+jy4SO x/EF7DlMV6yqPEiFHBDEaAgdycHo34Wdh4a8= X-Received: by 2002:ae9:c107:: with SMTP id z7mr8923146qki.245.1567082047550; Thu, 29 Aug 2019 05:34:07 -0700 (PDT) X-Received: by 2002:ae9:c107:: with SMTP id z7mr8923119qki.245.1567082047269; Thu, 29 Aug 2019 05:34:07 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4340::ba0]) by smtp.gmail.com with ESMTPSA id z20sm1040924qts.47.2019.08.29.05.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 05:34:05 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Pali =?utf-8?B?Um9ow6Fy?= Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Sasha Levin , Christoph Hellwig Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging In-Reply-To: <20190829121435.bsl5cnx7yqgakpgb@pali> References: <20190828160817.6250-1-gregkh@linuxfoundation.org> <20190829121435.bsl5cnx7yqgakpgb@pali> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1567082044_4251P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 29 Aug 2019 08:34:04 -0400 Message-ID: <81682.1567082044@turing-police> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1567082044_4251P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, 29 Aug 2019 14:14:35 +0200, Pali Roh=E1r said: > On Wednesday 28 August 2019 18:08:17 Greg Kroah-Hartman wrote: > > The full specification of the filesystem can be found at: > > https://docs.microsoft.com/en-us/windows/win32/fileio/exfat-specifi= cation > > This is not truth. This specification is not =22full=22. There are miss= ing > important details, like how is TexFAT implemented.=20 Well..given that the spec says it's an extension used by Windows CE... > 1.5 Windows CE and TexFAT > TexFAT is an extension to exFAT that adds transaction-safe operational > semantics on top of the base file system. TexFAT is used by Windows CE.= TexFAT > requires the use of the two FATs and allocation bitmaps for use in > transactions. It also defines several additional structures including p= adding > descriptors and security descriptors. And these two pieces of info: > 3.1.13.1 ActiveFat Field > The ActiveFat field shall describe which FAT and Allocation Bitmap are = active > (and implementations shall use), as follows: > 0, which means the First FAT and First Allocation Bitmap are active > 1, which means the Second FAT and Second Allocation Bitmap are active a= nd is > possible only when the NumberOfFats field contains the value 2 > Implementations shall consider the inactive FAT and Allocation Bitmap a= s stale. > Only TexFAT-aware implementations shall switch the active FAT and Alloc= ation > Bitmaps (see Section 7.1). > 3.1.16 NumberOfFats Field > The NumberOfFats field shall describe the number of FATs and Allocation= Bitmaps > the volume contains. > The valid range of values for this field shall be: > 1, which indicates the volume only contains the First FAT and First All= ocation Bitmap > 2, which indicates the volume contains the First FAT, Second FAT, First= > Allocation Bitmap, and Second Allocation Bitmap; this value is only val= id for > TexFAT volumes I think we're OK if we just set ActiveFat to 0 and NumberOfFats to 1. Unless somebody has actual evidence of a non-WindowsCE extfat that has NumberOfFats =3D=3D 2.... --==_Exmh_1567082044_4251P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXWfGOwdmEQWDXROgAQKhFxAAgGBZUG/72DPXrzEGMXN4uGnAqENh9XKZ UPbCD+T20xWMxB8rIhVlqrvY1sR/lbFJ82PvHeqZqR7gNsmF4wpKRHOlnlmbIVok OSka2RrlznkFYWtFx5IBEp+MfOSa6zr0IEDPkEQ+ga7nzl/EucZLgJaY7ux9JTOM KYDHT50oWHVUOm5BbJdTWXlTURugDfsMz1e5xZw+KFSuIrNIwv6mF4b6ItLwBvh9 RsFAjUIE62CPIPY1L5yCw3ljOBEaV7Tmc95Awj4iXn3hhkiAHG5UzF3YfH4i9fRh VkQhQt9VbXmo/g3GpxjeNhtehHTyzpm9BU9Uo4oeknhVfXKo4lE2HtUOUMjdnpf+ 4Z8H796j+VK7mqMWxkWpG3WsL04LS5Gykc0gEkB431sE/6B9//zlDB8wGnX9aj2u PkIcdCrmySYtOLlt9SqrE3Ci4lez/psZri+vYi2Ni+mb1rLAwQv9quHAHKkwGt6x M9OiepCzjvDa25VyCsS09Otu5ZU9bdgJe2i+twKyFN20sBtCKYCJym43FdtIwen0 wnUAbezfXttfk+7kjUnNmwGDpX3JbDVCiPu8M3KYIJWr7TP4VvynWOU/cR/hOK3o dsRdbxVVKvfrzpLQR4MQ552sCi6R7u0nyZJZhdcIT6e3YwQwEZeA8GIGT5IM0gQT W+VVlrNbci4= =bt3G -----END PGP SIGNATURE----- --==_Exmh_1567082044_4251P--