From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web09.473.1649368910384054576 for ; Thu, 07 Apr 2022 15:01:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g6RAv1JA; spf=pass (domain: gmail.com, ip: 209.85.221.45, mailfrom: pedro.falcato@gmail.com) Received: by mail-wr1-f45.google.com with SMTP id h4so9923659wrc.13 for ; Thu, 07 Apr 2022 15:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pcQwh1vNwPbjuL+ta4zLr+VYKjYF+6Rl+XPowd636Fg=; b=g6RAv1JAzhOzw5kfXGFYpNGbZwYdGSIIch1OobJZBe1DLFBK4UPEUudLeJSIjjDeoL fSuxKwriWmNki10cipblIWePFTcBjTX8cg0nnJBaETPYRBjnlwP50ytcZlMy4FK84Juz ItBWOk/BFpBT89xpHmsjSfTSUaNwzwjaP0gA8zXMTjxPIkvo5GC12ckzQhA1foEz8pD8 9h0Wh/16+cGIAsfp9PVu5lr7BUBqdtgnmD0WCd4kjhsWeezjRws/1qwy82jaIC1/J/yU BCJhfhAZ9GkJfgU1WNVlLRMIAlru/wMamrOcTFelsvIAiBjjqFQrhjRY+RHq2+1aSJmJ H0Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pcQwh1vNwPbjuL+ta4zLr+VYKjYF+6Rl+XPowd636Fg=; b=d9On+VYvqWmoeHTk6Td0JIstPtYVbuW2J+PcvAiJNgOsOcGazzzov0HQPk7rB+NbL5 2+lo4y1JKHhyN74lznG0rh1VxwrkKMOiXQYf42xt5g1Srd7agQ/nW0Jfg8YhgwiFdNQF 0rm+0w7hYrxAsE6oUlch7Hgr47cgia/PtGorECXmANOS1q9JGwMeWtw38zUx59KXs2b9 YXWLkSc1x7qmnSIcVtiyeGLtAI0T/rVdrus+0RVIXR8lHfAjZMyA3FQmhwYMliI/Z9P0 MvW9RpS8ooSSd/Tsc8+sVHWrCPNV8ze3lkGpbLlVh3yC8D7HLorsZfc2s+533CU7TyQ3 MVDw== X-Gm-Message-State: AOAM5310GmkZyNZ+mfJMfaIJ4Vqanze/wsHe+Ga+0JGMmYF55dT697R6 Q8Sl/VhXXb1StUSL77Qfm5b33rMQIiQi0Q== X-Google-Smtp-Source: ABdhPJyDrPCeXBY0rSUzKnDoEkGoeVhticq5SjAiXyCLWjuv9lxAh83TSfHVMWMW6ZpoNHoIzwybCg== X-Received: by 2002:a5d:6d83:0:b0:204:107d:ffe2 with SMTP id l3-20020a5d6d83000000b00204107dffe2mr11929755wrs.413.1649368908408; Thu, 07 Apr 2022 15:01:48 -0700 (PDT) Return-Path: Received: from PC-PEDRO-ARCH.lan ([2001:8a0:7280:5801:9441:3dce:686c:bfc7]) by smtp.gmail.com with ESMTPSA id m18-20020a05600c4f5200b0038e8f9d7b57sm2813379wmq.42.2022.04.07.15.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 15:01:47 -0700 (PDT) From: "Pedro Falcato" To: devel@edk2.groups.io Cc: Leif Lindholm , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH edk2-platforms 0/3] Ext4Pkg: Add ext2/3 support and move crc16/32c to BaseLib Date: Thu, 7 Apr 2022 23:01:43 +0100 Message-Id: <20220407220146.149580-1-pedro.falcato@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3745 BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3871 Hi all, This patch-set attempts to address two open feature requests for Ext4Pkg by adding ext2/3 support (id 3745) and moving crc16-ansi/crc32c to BaseLib (id 3871). The previous patch-set regarding 3871 attempted to merge the different crc16 implementations but failed because, contrary to what I thought, there are many, many different CRC16s which are all slightly different. This one (plus the separate edk2 patch) attempts to just merge CRC16-ANSI (confusingly, also known as CRC16) into BaseLib. Since this patch set grew to be considerably different from the original, I didn't mark it as v2 but rather a separate, new patch-set. CC'ing the edk2-platforms stewards (as I cannot review my own code) and the CC's of the MdePkg patch. Cc: Leif Lindholm Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Pedro Falcato (3): Ext4Pkg: Replace the CRC implementations with BaseLib Ext4Pkg: Format using uncrustify Ext4Pkg: Add ext2/3 support Features/Ext4Pkg/Ext4Dxe/BlockGroup.c | 10 +- Features/Ext4Pkg/Ext4Dxe/BlockMap.c | 279 +++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Collation.c | 4 +- Features/Ext4Pkg/Ext4Dxe/Crc16.c | 75 ----- Features/Ext4Pkg/Ext4Dxe/Crc32c.c | 84 ------ Features/Ext4Pkg/Ext4Dxe/Directory.c | 13 +- Features/Ext4Pkg/Ext4Dxe/DiskUtil.c | 6 +- Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 30 +- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 95 +++--- Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h | 417 ++++++++++++++------------ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf | 3 +- Features/Ext4Pkg/Ext4Dxe/Extents.c | 27 +- Features/Ext4Pkg/Ext4Dxe/File.c | 19 +- Features/Ext4Pkg/Ext4Dxe/Inode.c | 33 +- Features/Ext4Pkg/Ext4Dxe/Partition.c | 12 +- Features/Ext4Pkg/Ext4Dxe/Superblock.c | 20 +- 16 files changed, 640 insertions(+), 487 deletions(-) create mode 100644 Features/Ext4Pkg/Ext4Dxe/BlockMap.c delete mode 100644 Features/Ext4Pkg/Ext4Dxe/Crc16.c delete mode 100644 Features/Ext4Pkg/Ext4Dxe/Crc32c.c -- 2.35.1