From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web08.3511.1628373969248881479 for ; Sat, 07 Aug 2021 15:06:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bskNspxB; spf=pass (domain: gmail.com, ip: 209.85.221.54, mailfrom: pedro.falcato@gmail.com) Received: by mail-wr1-f54.google.com with SMTP id k29so3196752wrd.7 for ; Sat, 07 Aug 2021 15:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Jy3Gd4hHeIhpxbwrEaOe7zUGyKBvRksa5icPXM/sWKM=; b=bskNspxBCgu7NRz3M9bhToB9aCNoL1NVCAXk6Miadlks52JCKh07ZIYgJ9ztV9YyPp MeBs1ZNYw+5rpdUz1Ke27x42scHqI+R43/v34OQgRm4iGyHoUtJIFp2KwtMx4p3WVFZ6 fRsh7yzbfGty87zUO8Is6NeWFR8M+y1qIcvkndYnFzTpwl2rIwc8kFPGaGfKnxSmpXwk A5SrBDmk4DUScI+nDGuLBXIsGQ45H5mJeQoRtdIbHlcL3Qb/gzXJyP2kLYCuHuSeiQtL HQgBjZXG0KnM/yCkYn8ulXBBvzF10TnNlf3kEgwPmWb/P1vEoqC+QysBKbVzs9XP7d5B ++6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Jy3Gd4hHeIhpxbwrEaOe7zUGyKBvRksa5icPXM/sWKM=; b=me5TnpWCCuMMRXZLoFC2bk7yzfiguLsQMwz9oKaJLicqkQ5rPwpXvLBxn5qyI7Oa2U AHpMF2I58ksbiIfDzrHFx0Nqw7DqV48oxIeP+WpznAkPZttj+Hz5KzrlFggPEXRsrGv5 AUvywjPqGETBvNJvUGQxpEQUZp3qZV52Eu1ObYsx3j6+yYfwxfGRBpwfuC4xfe6RNtmV y69ysd2Dqzy4uHSB5nr/bh56rGVe3/a1g6ytw+vT73uRzaPkUQuEqzTBaw96P4KYH4Ft rM4Q+SSwPm/UzNBqSF3P1tzw9EZNuSQgcbVwJo7BEAZ8cK4niNHtVxfMgwLYSOJjZq98 V+nw== X-Gm-Message-State: AOAM530Wepx/xkveeiT7fKPhhSTL+Q1aHgXqLKeyXfhx3iAjMupOCyHg 6CL3FPqvg0i6IxIZGPm1hj6vEcWJupbiNA== X-Google-Smtp-Source: ABdhPJwh5kuCKCWwlofw6/abmhblULF/fnYcvyzp3I7jTtk30yI9JQCdM14BbXWMYBm9fGd5AIYSKw== X-Received: by 2002:adf:fe85:: with SMTP id l5mr17051767wrr.213.1628373967412; Sat, 07 Aug 2021 15:06:07 -0700 (PDT) Return-Path: Received: from PC-PEDRO.lan (bl8-253-151.dsl.telepac.pt. [85.241.253.151]) by smtp.gmail.com with ESMTPSA id q2sm3931300wrc.44.2021.08.07.15.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 15:06:06 -0700 (PDT) From: "Pedro Falcato" To: devel@edk2.groups.io Cc: Pedro Falcato , Leif Lindholm , Michael D Kinney , Bret Barkelew Subject: [Patch v2 0/3] Ext4Pkg: Add Ext4Pkg Date: Sat, 7 Aug 2021 23:05:45 +0100 Message-Id: <20210807220548.52360-1-pedro.falcato@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch-set adds Ext4Pkg, a package designed to hold various drivers and utilities related to the EXT4 filesystem. Right now, it holds a single read-only UEFI EXT4 driver (Ext4Dxe), which consumes the DISK_IO, BLOCK_IO and DISK_IO2 protocols and produce EFI_FILE_PROTOCOL and EFI_SIMPLE_FILE_SYSTEM_PROTOCOL; this driver allows the mounting of EXT4 partitions and the reading of their contents. Relevant RFC discussion, which includes a more in-depth walkthrough of EXT4 internals and driver limitations is available at https://edk2.groups.io/g/devel/topic/84368561. This patch set is version 2 and attempts to address issues raised by the community in v1's code review. Cc: Leif Lindholm Cc: Michael D Kinney Cc: Bret Barkelew Pedro Falcato (3): Ext4Pkg: Add Ext4Pkg.dec and Ext4Pkg.uni. Ext4Pkg: Add Ext4Dxe driver. Ext4Pkg: Add .DSC file. Features/Ext4Pkg/Ext4Dxe/BlockGroup.c | 207 +++++ Features/Ext4Pkg/Ext4Dxe/Collation.c | 171 ++++ Features/Ext4Pkg/Ext4Dxe/Crc16.c | 74 ++ Features/Ext4Pkg/Ext4Dxe/Crc32c.c | 83 ++ Features/Ext4Pkg/Ext4Dxe/Directory.c | 513 +++++++++++ Features/Ext4Pkg/Ext4Dxe/DiskUtil.c | 106 +++ Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 455 ++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 789 +++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h | 1136 +++++++++++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf | 149 ++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.uni | 15 + Features/Ext4Pkg/Ext4Dxe/Extents.c | 618 ++++++++++++++ Features/Ext4Pkg/Ext4Dxe/File.c | 786 +++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Inode.c | 467 ++++++++++ Features/Ext4Pkg/Ext4Dxe/Partition.c | 122 +++ Features/Ext4Pkg/Ext4Dxe/Superblock.c | 281 ++++++ Features/Ext4Pkg/Ext4Pkg.dec | 17 + Features/Ext4Pkg/Ext4Pkg.dsc | 68 ++ Features/Ext4Pkg/Ext4Pkg.uni | 14 + 19 files changed, 6071 insertions(+) create mode 100644 Features/Ext4Pkg/Ext4Dxe/BlockGroup.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Collation.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Crc16.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Crc32c.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Directory.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/DiskUtil.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h create mode 100644 Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h create mode 100644 Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf create mode 100644 Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.uni create mode 100644 Features/Ext4Pkg/Ext4Dxe/Extents.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/File.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Inode.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Partition.c create mode 100644 Features/Ext4Pkg/Ext4Dxe/Superblock.c create mode 100644 Features/Ext4Pkg/Ext4Pkg.dec create mode 100644 Features/Ext4Pkg/Ext4Pkg.dsc create mode 100644 Features/Ext4Pkg/Ext4Pkg.uni -- 2.32.0