search for: leave_with_error

Displaying 1 result from an estimated 1 matches for "leave_with_error".

2013 Aug 20
7
[PATCH] btrfs-progs: use btrfs error code for kernel errors
...BTRFS_IOC_DEV_REPLACE, &start_args); if (do_not_background) { - if (ret) { + if (ret < 0) { fprintf(stderr, "ERROR: ioctl(DEV_REPLACE_START) failed on \"%s\": %s, %s\n", path, strerror(errno), replace_dev_result2string(start_args.result)); goto leave_with_error; + } else if (ret > 0) { + fprintf(stderr, + "ERROR: replace start failed on %s - %s\n", + path, btrfs_err_str(ret)); + goto leave_with_error; } if (start_args.result != -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in...