mbox series

[0/8] btrfs-progs: sync basic code from the kernel

Message ID cover.1681938911.git.josef@toxicpanda.com (mailing list archive)
Headers show
Series btrfs-progs: sync basic code from the kernel | expand

Message

Josef Bacik April 19, 2023, 9:17 p.m. UTC
Hello,

This series copies the easier to sync files from the kernel into btrfs-progs and
updates all the users to include the appropriate headers.  There's an extra
change in here to deal with va_format, which we'll need for future syncs.  I put
it in here because it's related to the messages sync, so it seemed appropriate.

This depends on the series

 btrfs-progs: prep work for syncing files into kernel-shared

Thanks,

Josef

Josef Bacik (8):
  btrfs-progs: sync uapi/btrfs.h into btrfs-progs
  btrfs-progs: sync ondisk definitions from the kernel
  btrfs-progs: sync messages.* from the kernel
  btrfs-progs: add struct va_format support to our btrfs_no_printk
    helper
  btrfs-progs: sync accessors.[ch] from the kernel
  btrfs-progs: sync file-item.h into progs
  btrfs-progs: sync async-thread.[ch] from the kernel
  btrfs-progs: sync extent-io-tree.[ch] and misc.h from the kernel

 Makefile                                      |    4 +
 btrfs-corrupt-block.c                         |    3 +-
 btrfs-fragments.c                             |    2 +-
 check/clear-cache.c                           |   15 +-
 check/common.h                                |    2 +-
 check/main.c                                  |   34 +-
 check/mode-common.c                           |   19 +-
 check/mode-lowmem.c                           |   11 +-
 check/repair.c                                |   16 +-
 cmds/balance.c                                |    2 +-
 cmds/device.c                                 |    2 +-
 cmds/filesystem-usage.h                       |    2 +-
 cmds/filesystem.c                             |    2 +-
 cmds/inspect-tree-stats.c                     |    1 +
 cmds/inspect.c                                |    2 +-
 cmds/property.c                               |    2 +-
 cmds/qgroup.c                                 |    2 +-
 cmds/qgroup.h                                 |    2 +-
 cmds/quota.c                                  |    2 +-
 cmds/receive.c                                |    2 +-
 cmds/replace.c                                |    2 +-
 cmds/rescue-chunk-recover.c                   |    4 +-
 cmds/restore.c                                |    3 +-
 cmds/scrub.c                                  |    2 +-
 cmds/send.c                                   |    2 +-
 cmds/subvolume-list.c                         |    2 +-
 cmds/subvolume.c                              |    2 +-
 common/device-scan.c                          |    2 +-
 common/device-scan.h                          |    2 +-
 common/fsfeatures.c                           |    2 +-
 common/internal.h                             |    4 +
 common/messages.c                             |   42 +
 common/messages.h                             |   18 +
 common/send-stream.c                          |    2 +-
 common/send-utils.c                           |    2 +-
 common/utils.c                                |    2 +-
 common/utils.h                                |    2 +-
 convert/common.c                              |    2 +-
 convert/main.c                                |    1 +
 convert/source-ext2.c                         |    1 +
 image/main.c                                  |   12 +-
 include/kerncompat.h                          |  285 ++-
 kernel-lib/bitops.h                           |   12 +
 kernel-lib/trace.h                            |   55 +
 kernel-shared/accessors.c                     |  117 +
 kernel-shared/accessors.h                     | 1087 ++++++++++
 kernel-shared/async-thread.c                  |  339 +++
 kernel-shared/async-thread.h                  |   46 +
 kernel-shared/backref.c                       |    1 +
 kernel-shared/ctree.h                         | 1890 +----------------
 kernel-shared/delayed-ref.c                   |    1 +
 kernel-shared/dir-item.c                      |    8 +-
 kernel-shared/disk-io.c                       |   16 +-
 kernel-shared/extent-io-tree.c                | 1733 +++++++++++++++
 kernel-shared/extent-io-tree.h                |  239 +++
 kernel-shared/extent-tree.c                   |   52 +-
 kernel-shared/extent_io.c                     |  474 +----
 kernel-shared/extent_io.h                     |   39 +-
 kernel-shared/file-item.c                     |   13 +-
 kernel-shared/file-item.h                     |   89 +
 kernel-shared/file.c                          |    1 +
 kernel-shared/free-space-tree.c               |    1 +
 kernel-shared/inode.c                         |    2 +-
 kernel-shared/messages.c                      |  336 +++
 kernel-shared/messages.h                      |  216 ++
 kernel-shared/misc.h                          |  143 ++
 kernel-shared/print-tree.c                    |   17 +-
 kernel-shared/transaction.c                   |    5 +-
 include/ioctl.h => kernel-shared/uapi/btrfs.h |  566 +++--
 kernel-shared/uapi/btrfs_tree.h               | 1259 +++++++++++
 kernel-shared/ulist.c                         |    1 +
 kernel-shared/zoned.h                         |    1 +
 libbtrfs/kerncompat.h                         |   20 -
 mkfs/common.c                                 |    3 +-
 mkfs/rootdir.c                                |    1 +
 tests/ioctl-test.c                            |    2 +-
 tune/change-metadata-uuid.c                   |    2 +-
 tune/change-uuid.c                            |    2 +-
 78 files changed, 6530 insertions(+), 2782 deletions(-)
 create mode 100644 kernel-lib/trace.h
 create mode 100644 kernel-shared/accessors.c
 create mode 100644 kernel-shared/accessors.h
 create mode 100644 kernel-shared/async-thread.c
 create mode 100644 kernel-shared/async-thread.h
 create mode 100644 kernel-shared/extent-io-tree.c
 create mode 100644 kernel-shared/extent-io-tree.h
 create mode 100644 kernel-shared/file-item.h
 create mode 100644 kernel-shared/messages.c
 create mode 100644 kernel-shared/messages.h
 create mode 100644 kernel-shared/misc.h
 rename include/ioctl.h => kernel-shared/uapi/btrfs.h (72%)
 create mode 100644 kernel-shared/uapi/btrfs_tree.h

Comments

David Sterba May 3, 2023, 9:26 a.m. UTC | #1
On Wed, Apr 19, 2023 at 05:17:11PM -0400, Josef Bacik wrote:
> Hello,
> 
> This series copies the easier to sync files from the kernel into btrfs-progs and
> updates all the users to include the appropriate headers.  There's an extra
> change in here to deal with va_format, which we'll need for future syncs.  I put
> it in here because it's related to the messages sync, so it seemed appropriate.
> 
> This depends on the series
> 
>  btrfs-progs: prep work for syncing files into kernel-shared
> 
> Thanks,
> 
> Josef
> 
> Josef Bacik (8):
>   btrfs-progs: sync uapi/btrfs.h into btrfs-progs
>   btrfs-progs: sync ondisk definitions from the kernel
>   btrfs-progs: sync messages.* from the kernel
>   btrfs-progs: add struct va_format support to our btrfs_no_printk
>     helper
>   btrfs-progs: sync accessors.[ch] from the kernel
>   btrfs-progs: sync file-item.h into progs
>   btrfs-progs: sync async-thread.[ch] from the kernel
>   btrfs-progs: sync extent-io-tree.[ch] and misc.h from the kernel

Added to devel, thanks. There were random compilation problems due to
the paths or missing forward declarations. I did only minimal changes to
make it build, we'll need to do another pass once all the patches land.