From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.web09.28075.1629137241622630689 for ; Mon, 16 Aug 2021 11:07:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aBQdvz86; spf=pass (domain: gmail.com, ip: 209.85.221.50, mailfrom: pedro.falcato@gmail.com) Received: by mail-wr1-f50.google.com with SMTP id x10so18532921wrt.8 for ; Mon, 16 Aug 2021 11:07:21 -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=rRfZG32/2fp3+Bn1vDcR0YLHtGscvguMo7bb2L8EFRY=; b=aBQdvz866xJOX3Kw9Lwz/yx+uHghAGq6LF4shta/v622g4B7/qBHwC5k0X0yKeFmv9 65eKsaIV+tEfdCUfniaOHssOW/xHRZ1qVJgdVpLJpV54A4e5sSj30qU6J7ceaNaccOWW gNuN7nFzuzWy57FhUU9u274ORjK+MTHfzEI+gFj6hIOLa5zNdOPy2f2Tza2D1+CABAqT RvVSpiji1gvIcZU+8tTiD4FpP58mtaAJD9V5+L+TqZ/Jg2NnfKtvv91/YquhkT9Npbci orDWvxeEWMuz5HETLxpzjfQeQsEHTapINgJjCwy38dCAc9PizreoYFoL3/LoRm0AlZMk 8n9Q== 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=rRfZG32/2fp3+Bn1vDcR0YLHtGscvguMo7bb2L8EFRY=; b=MrJvZPYRQ8ksTshtmyM1lZOVN402aVUyViq7WFLbFjYZEvhkqgcYRPcTER9rhOOcAY WXNHwh/4+dtbSuJIMVIBMCQnMN/CFoUWAUCtH2afdWZnQ25jx6L/j7ZgYWbDLvPWcCWS 5fvhrhtWeYuuJWBqFdPTWrDsbXr4mQqbv1df8rx6uUWwKyU/eoIfzXJyzYfBIX7++6xT 4bsa7Hb4YNqVTZse/VJnX3Qr0FCfwITIW4f5MnzKZzpuKfnC53cfmsZBXARwYCj4aCyU mXgGkck+T05CmN1Q2WvpUkeDGUrN4RX2B9vl1rm+yecUNJnSpHGNtAo60v/56HtlV51s wiRA== X-Gm-Message-State: AOAM530CetNTzWXKgr4XmcgK4gr1bkuuOzVLyT2Py3lYFpiOuvfVx+3f yhjLVTaU4VCjqyVWdW0SFXmk0FrOMzR8iRhU X-Google-Smtp-Source: ABdhPJzrCZ9p64PJsjRsrcWvuSot183LiFRzK1DS8k3BEYlk4loy0yWA3gCQAY+Va/iE37GTZl6Ksg== X-Received: by 2002:adf:e48d:: with SMTP id i13mr20450331wrm.288.1629137239839; Mon, 16 Aug 2021 11:07:19 -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 z137sm263479wmc.14.2021.08.16.11.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 11:07:19 -0700 (PDT) From: "Pedro Falcato" To: devel@edk2.groups.io Cc: Pedro Falcato , Leif Lindholm , Michael D Kinney , Bret Barkelew Subject: [Patch v4 0/3] Ext4Pkg: Add Ext4Pkg Date: Mon, 16 Aug 2021 19:06:53 +0100 Message-Id: <20210816180656.25740-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. A 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 4 and attempts to address issues raised by the community in v3'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 | 228 ++++++ Features/Ext4Pkg/Ext4Dxe/Collation.c | 173 +++++ Features/Ext4Pkg/Ext4Dxe/Crc16.c | 75 ++ Features/Ext4Pkg/Ext4Dxe/Crc32c.c | 84 ++ Features/Ext4Pkg/Ext4Dxe/Directory.c | 498 ++++++++++++ Features/Ext4Pkg/Ext4Dxe/DiskUtil.c | 113 +++ Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h | 454 +++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.c | 808 +++++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h | 1038 +++++++++++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.inf | 149 ++++ Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.uni | 15 + Features/Ext4Pkg/Ext4Dxe/Extents.c | 595 ++++++++++++++ Features/Ext4Pkg/Ext4Dxe/File.c | 787 +++++++++++++++++++ Features/Ext4Pkg/Ext4Dxe/Inode.c | 465 +++++++++++ Features/Ext4Pkg/Ext4Dxe/Partition.c | 125 +++ Features/Ext4Pkg/Ext4Dxe/Superblock.c | 297 +++++++ Features/Ext4Pkg/Ext4Pkg.dec | 17 + Features/Ext4Pkg/Ext4Pkg.dsc | 70 ++ Features/Ext4Pkg/Ext4Pkg.uni | 14 + 19 files changed, 6005 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