- 08 9月, 2020 33 次提交
-
-
由 Qu Wenruo 提交于
Since the current code base is mostly from btrfs-progs, anyone contributing to U-Boot btrfs code could also help us to improve btrfs-progs and btrfs kernel module. Also add myself as designated reviewer. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This cleans up the now unneeded code from the old btrfs implementation. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
Reimplement btrfs_list_subvols() to use new code. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch introduces a new function, list_one_subvol(), which will resolve the path to FS_TREE of one subvolume. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch introduces a new function, get_path_in_subvolume(), which resolves inode number into path inside a subvolume. This function will be later used for btrfs subvolume list functionality. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This version of btrfs_file_read() has the following new features: - Tries all mirrors - More handling on unaligned size - Better compressed extent handling The old implementation doesn't handle compressed extent with offset properly: we need to read out the whole compressed extent, then decompress the whole extent, and only then copy the requested part. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This implements lookup_data_extent() function for the incoming new implementation of btrfs_file_read(). Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
These two functions are used to do sector aligned read, which will be later used to implement btrfs_file_read(). Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
Rename btrfs_file_read() and its callees to avoid name conflicts with the incoming new code. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
After this the only remaining function that still utilizes __btrfs_lookup_path() is btrfs_read(). Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
Use extent buffer based infrastructure to re-implement btrfs_readdir(). Along this rework, some small corner cases fixed: - Subvolume tree mtime Mtime of a subvolume tree is recorded in its root item, since there is no INODE_ITEM for it. This needs extra search from tree root. - Output the unknown type If the DIR_ITEM is corrupted, at least don't try to access the memory out of boundary. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This is the extent buffer based path lookup routine. To implement this, btrfs_lookup_dir_item() is crossported from btrfs-progs, and implements btrfs_lookup_path() from scratch. Unlike the existing __btrfs_lookup_path(), since btrfs_read_fs_root() will check whether a root is a orphan at read time, there is no need to check root backref, this makes the code a little easier to read. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
All existing next_length() caller handles return value > BTRFS_NAME_LEN, so there is no need to do BTRFS_NAME_LEN check in next_length(). But still, we want to exit early if we're beyond BTRFS_NAME_LEN, so this patch makes next_length() exit as soon as we're beyond BTRFS_NAME_LEN. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
The existing __btrfs_readlink() can be easily re-implemented using the extent buffer based btrfs_readlink(). This is the first step to re-implement U-Boot's btrfs code. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
Since the old code is using __btrfs_path/__btrfs_root which is different from the regular extent buffer based one, we add "__" prefix for the old implementation to avoid name conflicts for the incoming crossport. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
open_ctree_fs_info() is the main entry point to open btrfs. This version is a simplfied version of __open_ctree_fd() of btrfs-progs, the main differences are: - Parameters on how to specify a block device Instead of @fd and @path, U-Boot uses blk_desc and disk_partition_t. - Remove open_ctree flags There won't be multiple open ctree modes in U-Boot. Otherwise functions structures are all kept the same. With open_ctree_fs_info() implemented, also introduce the global current_fs_info pointer to show the current opened btrfs. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
These two functions play a big role in btrfs bootstrap. The following function is removed: - Seed device support Although in theory we can still support multiple devices, we don't have a facility in U-Boot to do device scan without opening them. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch copies the core function, btrfs_search_slot(), from btrfs-progs. This version has the following functionality removed: - The ability to COW tree block Related code is commented out, and can be enabled in the future. - The readahead functionality This is abused in kernel. Remove it completely. With the core function in place, btrfs developers should feel at home now. This also crossports supporting code like btrfs_previous_item() to ctree.[ch]. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
Crossport struct btrfs_root to ctree.h from btrfs-progs, with write related members deleted. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This is to avoid naming conflicts between extent buffer based btrfs_root. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
To avoid name conflicting between the extent buffer based btrfs_path from btrfs-progs, rename struct btrfs_path to struct __btrfs_path. Also rename btrfs_free_path() to __btrfs_free_path() to avoid conflicts. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This is the one of the basic stone function for btrfs, which: - Resolves the chunk mappings - Reads data from disk - Does various sanity check With read_tree_block(), we can finally crossport needed btrfs btree operations to U-Boot. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch crossports volumes.[ch] from btrfs-progs, including: - btrfs_map_block() The core mechanism to map btrfs logical address to physical address. This version includes multi-device support, along with RAID56 support. - btrfs_scan_one_device() This is the function to register one btrfs device to the list. This is the main part of the multi-device btrfs assembling process. Although we're not going to support multiple devices until U-Boot allows us to scan one device without actually opening it. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz> [trini: Use %zu in a debug print to avoid warning] Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Qu Wenruo 提交于
This brings all structure accessors from btrfs-progs/ctree.h, as in kernel's ctree.h. All these accessors handle the endian convert at runtime, and since all of them are defined as static inline functions, those which aren't used won't take space in resulting binary. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This brings the extent_io_tree infrastructure, with which we can finally bring in proper btrfs_fs_info structure to ctree.h. With read/write_extent_buffer() implemented we also backport read/write_eb_member() to ctree.h. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch implements an infrastructure to insert/search/merge an extent range (with variable length). This provides the basis for later extent buffer cache used in btrfs. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This is needed for incoming extent-cache infrastructure. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This patch uses generic code from btrfs-progs to read one super block from block device. To support the btrfs-progs coding style, the following is also crossported: - BTRFS_SETGET_FUNC for btrfs_super_block - btrfs_check_super() function - Move btrfs_read_superblock() to disk-io.[ch] Since super.c only contains pretty small amount of code, and the extra check will be covered in later root read patches. Differences between this implementation and btrfs-progs: - No sbflags/sb_bytenr support Since we only need to read the primary super block (like kernel), sbflags/sb_bytenr used by super block recovery is not needed. This also changes the following behavior of U-Boot btrfs: - Only reads the primary super block The old implementation reads all 3 super blocks, and also one non-existing backup. This is not correct, especially if there is another filesystem created on the device but old superblocks are not rewritten. Just like kernel, we only check the primary super block. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz> [trini: Change error to be a define in compat.h] Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Qu Wenruo 提交于
This mostly crossports crypto/hash.[ch] from btrfs-progs. The differences are: - No blake2 support No blake2 related library in U-Boot yet. - Use uboot xxhash/sha256 directly No need to implement the code as U-Boot has already provided the interface. This adds the support for the following csums: - SHA256 - XXHASH Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Qu Wenruo 提交于
This version includes all needed on-disk format from kernel. Only need to modify the include headers for U-Boot, everything else is untouched. Also, since U-Boot btrfs is using a different endian convert timing (at tree block read time), it needs some forced type conversion before proper crossport. Signed-off-by: NQu Wenruo <wqu@suse.com> Reviewed-by: NMarek Behún <marek.behun@nic.cz>
-
由 Tom Rini 提交于
Merge branch 'remove-config-nr-dram-banks-v9-2020-08-26' of https://gitlab.denx.de/u-boot/custodians/u-boot-marvell into next
-
由 Tom Rini 提交于
Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Tom Rini 提交于
Rsync all defconfig files using moveconfig.py Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 07 9月, 2020 7 次提交
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-efi由 Tom Rini 提交于
Pull request for UEFI sub-system for efi-2020-10-rc4 Bug fixes are provided in the following areas: * convert file system debug and print messages go log messages * convert UEFI booting messages to log messages * UEFI related code clean up and simplification
-
由 Heinrich Schuchardt 提交于
CONFIG_EFI_LOADER cannot be selected for ARMv7-M CPUs. So don't check it in the Makefile. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
The image size is checked in efi_load_pe(). Avoid checking it twice. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
* Eliminate superfluous enum value EFI_TABLE_END. * Use correct variable type for the memory type. * Check validity of memory type. * Make efi_build_mem_table static. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Currently if the bootefi command fails due to missing authentication, the user gets no feedback. Write a log message 'Image not authenticated' if LoadImage() fails due to missing authentication. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Use log_err() for error messages. Replace debug() by EFI_PRINT(). Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
Write log messages when booting via the bootefi command to allow tracking on the syslog server. Example messages are Booting /snp.efi or Booting /MemoryMapped(0x0,0x4fe00000,0x35a40) Loading image failed Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-