Skip to content
Snippets Groups Projects
  1. Sep 08, 2020
    • Qu Wenruo's avatar
      fs: btrfs: Crossport rbtree-utils from btrfs-progs · bc621e54
      Qu Wenruo authored and Tom Rini's avatar Tom Rini committed
      
      This is needed for incoming extent-cache infrastructure.
      
      Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
      Reviewed-by: default avatarMarek Behún <marek.behun@nic.cz>
      bc621e54
    • Qu Wenruo's avatar
      fs: btrfs: Crossport btrfs_read_dev_super() from btrfs-progs · 4aebb994
      Qu Wenruo authored and Tom Rini's avatar Tom Rini committed
      
      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: default avatarQu Wenruo <wqu@suse.com>
      Reviewed-by: default avatarMarek Behún <marek.behun@nic.cz>
      [trini: Change error to be a define in compat.h]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      4aebb994
    • Qu Wenruo's avatar
      fs: btrfs: Add more checksum algorithms · 565a4147
      Qu Wenruo authored and Tom Rini's avatar Tom Rini committed
      
      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: default avatarQu Wenruo <wqu@suse.com>
      Reviewed-by: default avatarMarek Behún <marek.behun@nic.cz>
      565a4147
    • Qu Wenruo's avatar
      fs: btrfs: Sync btrfs_btree.h from kernel · 3b4b40c0
      Qu Wenruo authored and Tom Rini's avatar Tom Rini committed
      
      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: default avatarQu Wenruo <wqu@suse.com>
      Reviewed-by: default avatarMarek Behún <marek.behun@nic.cz>
      3b4b40c0
  2. Sep 07, 2020
  3. Sep 06, 2020
  4. Sep 04, 2020
  5. Sep 03, 2020
  6. Sep 02, 2020
  7. Sep 01, 2020
Loading