summaryrefslogtreecommitdiff
path: root/btrfsctl.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-06-09 09:22:37 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-06-09 09:22:37 -0400
commitb53a236c3eea3ce01a0054c249cb0b974b9568c6 (patch)
tree82277d8bd2b18794427464e1b7080e51af578387 /btrfsctl.c
parentf8d7bbd1fab8ed5c8f7c75d43c6dbe4bfb4f847a (diff)
remove device tree
Diffstat (limited to 'btrfsctl.c')
-rw-r--r--btrfsctl.c12
1 files changed, 0 insertions, 12 deletions
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");