Displaying 2 results from an estimated 2 matches for "btrfs_ioctl_balance_args".
2012 Feb 03
10
[PATCH 0/3] Btrfs-progs: restriper interface
Hello,
This is the userspace part of restriper, rebased onto the new progs
infrastructure. Restriper commands are located under ''balance'' prefix,
which is now the top level command group. However to not confuse
existing users ''balance'' prefix is also available under ''filesystem'':
btrfs [filesystem] balance start
btrfs [filesystem] balance
2013 Aug 20
7
[PATCH] btrfs-progs: use btrfs error code for kernel errors
...s-filesystem.c | 6 +++++-
cmds-replace.c | 7 ++++++-
4 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/cmds-balance.c b/cmds-balance.c
index c78b726..30019be 100644
--- a/cmds-balance.c
+++ b/cmds-balance.c
@@ -316,6 +316,12 @@ static int do_balance(const char *path, struct btrfs_ioctl_balance_args *args,
if (ret == 0)
goto out;
e = errno;
+ if (ret > 0) {
+ fprintf(stderr,
+ "ERROR: Balance failed due to - %s\n",
+ btrfs_err_str(ret));
+ goto out;
+ }
}
if (e == ECANCELED) {
@@ -332,6 +338,11 @@ static int do_balance(const char *path, struc...