From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 741A6C3A5A6 for ; Thu, 29 Aug 2019 12:34:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C413206BB for ; Thu, 29 Aug 2019 12:34:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727294AbfH2MeP (ORCPT ); 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-Google-Smtp-Source: APXvYqxaDa0b+S9n3TC9x3RzUIgHC9MqSnXzCbeKQg97M3BeOqzYftKcNhL6eLT1sObNqoJv0/h4EA== 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--