X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=cmds-device.c;h=4337eb27203748d4c534be095eed1666f6a638c4;hb=88ef0b8397fa13f6114dc3ba5c8e88a7b7c992f9;hp=de62cd42d5f8bcad1f8ed02417462027b03beed5;hpb=d62902e95b9f8d54c290bcd47f7a573145479d3d;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/cmds-device.c b/cmds-device.c index de62cd4..4337eb2 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -32,6 +32,8 @@ #include "cmds-fi-usage.h" #include "commands.h" +#include "help.h" +#include "mkfs/common.h" static const char * const device_cmd_group_usage[] = { "btrfs device []", @@ -398,6 +400,7 @@ static int cmd_device_stats(int argc, char **argv) while (1) { int c; static const struct option long_options[] = { + {"check", no_argument, NULL, 'c'}, {"reset", no_argument, NULL, 'z'}, {NULL, 0, NULL, 0} }; @@ -533,8 +536,8 @@ static int _cmd_device_usage(int fd, char *path, unsigned unit_mode) for (i = 0; i < devcount; i++) { printf("%s, ID: %llu\n", devinfo[i].path, devinfo[i].devid); - print_device_sizes(fd, &devinfo[i], unit_mode); - print_device_chunks(fd, &devinfo[i], chunkinfo, chunkcount, + print_device_sizes(&devinfo[i], unit_mode); + print_device_chunks(&devinfo[i], chunkinfo, chunkcount, unit_mode); printf("\n"); }