btrfs-progs: subvolume create: accept multiple arguments
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs-progs: subvolume create: handle failure for strdup()cmds/ | +9 | 1 reply | |
| 2/3 | btrfs-progs: subvolume create: accept multiple argumentsDocumentation/ cmds/ | +92 | 0 replies | |
| 3/3 | btrfs-progs: cli-tests: add test case for subvolume create multiple argumentstests/ | +37 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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