Skip to content

btrfs-progs: subvolume create: accept multiple arguments

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: subvolume create: handle failure for strdup()cmds/subvolume.c+9 -01 reply
2/3btrfs-progs: subvolume create: accept multiple argumentsDocumentation/btrfs-subvolume.rst cmds/subvolume.c+92 -690 replies
3/3btrfs-progs: cli-tests: add test case for subvolume create multiple argumentstests/cli-tests/021-subvolume-multiple-arguments/test.sh+37 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs-progs: subvolume create: accept multiple arguments

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