From b53a236c3eea3ce01a0054c249cb0b974b9568c6 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Sat, 9 Jun 2007 09:22:37 -0400 Subject: remove device tree --- btrfsctl.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'btrfsctl.c') diff --git a/btrfsctl.c b/btrfsctl.c index 3710bc6a..74c39187 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -52,18 +52,6 @@ int main(int ac, char **av) } command = BTRFS_IOC_SNAP_CREATE; } - if (strcmp(av[i], "-a") == 0) { - if (i + 1 >= ac - 1) { - fprintf(stderr, "-a requires an arg"); - print_usage(); - } - name = av[i + 1]; - if (strlen(name) >= BTRFS_VOL_NAME_MAX) { - fprintf(stderr, "device name is too long\n"); - exit(1); - } - command = BTRFS_IOC_ADD_DISK; - } } if (command == 0) { fprintf(stderr, "no valid commands given\n"); -- cgit v1.2.3