bcachefs-tools: make targets of subvolume create/delete required
PATCH RESEND 1/1 bcachefs-tools: make targets of subvolume create/delete required
Currently, when no targets are provided for "bcachefs subvolume create" or "bcachefs subvolume delete", it will exit silently with code 0. Make targets (arguments) required to solve this problem.
This patch solves issue https://github.com/koverstreet/bcachefs/issues/766.
Signed-off-by Integral <[email protected]>
--- src/commands/subvolume.rs | 2 ++ 1 file changed, 2 insertions(+)
src/commands/subvolume.rs +2 -0
@@ -18,12 +18,14 @@ enum Subcommands {#[command(visible_aliases = [ "new" ])] Create {/// Paths +#[arg(required = true )] targets: Vec<PathBuf>, }, #[command(visible_aliases = ["del"])]Delete {/// Path +#[arg(required = true )] targets: Vec<PathBuf>, },
Signature · 1 line
2.49.0
Kent Overstreet
AppliedQuoted 7 lines · Integral
Currently, when no targets are provided for "bcachefs subvolume create" or "bcachefs subvolume delete", it will exit silently with code 0. Make targets (arguments) required to solve this problem.
This patch solves issue https://github.com/koverstreet/bcachefs/issues/766.
Signed-off-by Integral <[email protected]>
Thanks, applied
Quoted 26 lines
--- src/commands/subvolume.rs | 2 ++ 1 file changed, 2 insertions(+)src/commands/subvolume.rs +2
-0@@ -18,12 +18,14 @@ enum Subcommands {#[command(visible_aliases = [ "new" ])] Create {/// Paths +#[arg(required = true )] targets: Vec<PathBuf>, }, #[command(visible_aliases = ["del"])]Delete {/// Path +#[arg(required = true )] targets: Vec<PathBuf>, },Signature · 1 line
2.49.0