mbox series

[0/7,v2] btrfs-progs: cleanup and preparatory around device scan

Message ID cover.1686202417.git.anand.jain@oracle.com (mailing list archive)
Headers show
Series btrfs-progs: cleanup and preparatory around device scan | expand

Message

Anand Jain June 8, 2023, 6 a.m. UTC
v2: I have separated preparatory and cleanups from the introduction of new
    features so that they can be easily modified with a smaller set of patches.

    Added missing git changelogs. (Looks like sshfs lost my last few changes,
    now fixed).

In an attempt to enable btrfstune to accept multiple devices from the
command line, this patch includes some cleanup around the related
preparatory work around the device scan code.

Patches 1 to 5 primarily consist of cleanups. Patches 6 and 7 serve as
preparatory changes.

Anand Jain (7):
  btrfs-progs: check_mounted_where: declare is_btrfs as bool
  btrfs-progs: check_mounted_where: pack varibles type by size
  btrfs-progs: rename struct open_ctree_flags to open_ctree_args
  btrfs-progs: device_list_add: optimize arguments drop devid
  btrfs-progs: btrfs_scan_one_device: drop local variable ret
  btrfs-progs: factor out btrfs_scan_stdin_devices
  btrfs-progs: refactor check_where_mounted with noscan argument

 btrfs-find-root.c        |  2 +-
 check/main.c             |  2 +-
 cmds/filesystem.c        |  2 +-
 cmds/inspect-dump-tree.c | 39 ++++-----------------------------------
 cmds/rescue.c            |  4 ++--
 cmds/restore.c           |  2 +-
 common/device-scan.c     | 39 +++++++++++++++++++++++++++++++++++++++
 common/device-scan.h     |  1 +
 common/open-utils.c      | 21 ++++++++++++---------
 common/open-utils.h      |  3 ++-
 common/utils.c           |  3 ++-
 image/main.c             |  4 ++--
 kernel-shared/disk-io.c  |  8 ++++----
 kernel-shared/disk-io.h  |  4 ++--
 kernel-shared/volumes.c  | 14 +++++---------
 mkfs/main.c              |  2 +-
 tune/main.c              |  2 +-
 17 files changed, 81 insertions(+), 71 deletions(-)