public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: linux-btrfs@vger.kernel.org
Cc: Anand Jain <anand.jain@oracle.com>
Subject: [PATCH 0/7 v2] btrfs-progs: cleanup and preparatory around device scan
Date: Thu,  8 Jun 2023 14:00:57 +0800	[thread overview]
Message-ID: <cover.1686202417.git.anand.jain@oracle.com> (raw)


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(-)

-- 
2.38.1


             reply	other threads:[~2023-06-08  6:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08  6:00 Anand Jain [this message]
2023-06-08  6:00 ` [PATCH 1/7] btrfs-progs: check_mounted_where: declare is_btrfs as bool Anand Jain
2023-06-08  6:11   ` Qu Wenruo
2023-06-08  6:00 ` [PATCH 2/7] btrfs-progs: check_mounted_where: pack varibles type by size Anand Jain
2023-06-08  6:11   ` Qu Wenruo
2023-06-08 12:38   ` David Sterba
2023-06-11 10:21     ` Anand Jain
2023-06-08  6:01 ` [PATCH 3/7] btrfs-progs: rename struct open_ctree_flags to open_ctree_args Anand Jain
2023-06-08  6:14   ` Qu Wenruo
2023-06-08  7:10     ` Anand Jain
2023-06-08  7:28       ` Qu Wenruo
2023-06-11 10:57         ` Anand Jain
2023-06-08  6:01 ` [PATCH 4/7] btrfs-progs: device_list_add: optimize arguments drop devid Anand Jain
2023-06-08  6:18   ` Qu Wenruo
2023-06-08  6:01 ` [PATCH 5/7] btrfs-progs: btrfs_scan_one_device: drop local variable ret Anand Jain
2023-06-08  6:22   ` Qu Wenruo
2023-06-08 12:42     ` David Sterba
2023-06-11 11:12       ` Anand Jain
2023-06-08  6:01 ` [PATCH 6/7] btrfs-progs: factor out btrfs_scan_stdin_devices Anand Jain
2023-06-08  6:24   ` Qu Wenruo
2023-06-08 12:43   ` David Sterba
2023-06-08  6:01 ` [PATCH 7/7] btrfs-progs: refactor check_where_mounted with noscan argument Anand Jain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1686202417.git.anand.jain@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox