int cmd_balance(int argc, char **argv) { if (argc == 2) { /* old 'btrfs filesystem balance <path>' syntax */ struct btrfs_ioctl_balance_args args; memset(&args, 0, sizeof(args)); args.flags |= BTRFS_BALANCE_TYPE_MASK; return do_balance(argv[1], &args, 1); } return handle_command_group(&balance_cmd_group, argc, argv); }
int cmd_task(int fd, int argc, char **argv) { return handle_command_group(&task_cmd_group, fd, argc, argv); }
int cmd_property(int argc, char **argv) { return handle_command_group(&property_cmd_group, argc, argv); }
int cmd_subvolume(int argc, char **argv) { return handle_command_group(&subvolume_cmd_group, argc, argv); }
int cmd_qgroup(int argc, char **argv) { return handle_command_group(&qgroup_cmd_group, argc, argv); }
int cmd_quota(int argc, char **argv) { return handle_command_group("a_cmd_group, argc, argv); }
int cmd_rescue(int argc, char **argv) { return handle_command_group(&rescue_cmd_group, argc, argv); }
int cmd_scrub(int argc, char **argv) { return handle_command_group(&scrub_cmd_group, argc, argv); }
int cmd_device(int argc, char **argv) { return handle_command_group(&device_cmd_group, argc, argv); }