public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] btrfs-progs: subvolume create: accept multiple arguments
@ 2023-11-02  5:33 Qu Wenruo
  2023-11-02  5:33 ` [PATCH 1/3] btrfs-progs: subvolume create: handle failure for strdup() Qu Wenruo
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Qu Wenruo @ 2023-11-02  5:33 UTC (permalink / raw)
  To: linux-btrfs

This patchset adds the ability to accept multiple arguments for "btrfs
subvolume create" command, just like "mkdir".

And also we follow the error reporting part of "mkdir", any failure
would make the command to return 1 for error.

[PATCHSET STRUCTURE]
During the development, I found two missing error handling for strdup(),
thus here comes the first patch to fix them.

Then the 2nd patch implements the main part.

Finally the last patch is add the new test case for the error handling
part.

Qu Wenruo (3):
  btrfs-progs: subvolume create: handle failure for strdup()
  btrfs-progs: subvolume create: accept multiple arguments
  btrfs-progs: cli-tests: add test case for subvolume create multiple
    arguments

 Documentation/btrfs-subvolume.rst             |  11 +-
 cmds/subvolume.c                              | 223 ++++++++++--------
 .../021-subvolume-multiple-arguments/test.sh  |  37 +++
 3 files changed, 170 insertions(+), 101 deletions(-)
 create mode 100755 tests/cli-tests/021-subvolume-multiple-arguments/test.sh

--
2.42.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-23 19:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-02  5:33 [PATCH 0/3] btrfs-progs: subvolume create: accept multiple arguments Qu Wenruo
2023-11-02  5:33 ` [PATCH 1/3] btrfs-progs: subvolume create: handle failure for strdup() Qu Wenruo
2023-11-23 19:11   ` David Sterba
2023-11-02  5:33 ` [PATCH 2/3] btrfs-progs: subvolume create: accept multiple arguments Qu Wenruo
2023-11-02  5:33 ` [PATCH 3/3] btrfs-progs: cli-tests: add test case for subvolume create " Qu Wenruo
2023-11-23 19:22 ` [PATCH 0/3] btrfs-progs: subvolume create: accept " David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox