btrfs-progs: move help.[ch] to common/
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d0970a05cd
commit
f93b471143
32 changed files with 31 additions and 31 deletions
2
Makefile
2
Makefile
|
@ -133,7 +133,7 @@ objects = ctree.o disk-io.o kernel-lib/radix-tree.o extent-tree.o print-tree.o \
|
|||
qgroup.o free-space-cache.o kernel-lib/list_sort.o props.o \
|
||||
kernel-shared/ulist.o qgroup-verify.o backref.o string-table.o \
|
||||
common/task-utils.o \
|
||||
inode.o file.o find-root.o free-space-tree.o help.o send-dump.o \
|
||||
inode.o file.o find-root.o free-space-tree.o common/help.o send-dump.o \
|
||||
fsfeatures.o kernel-lib/tables.o kernel-lib/raid56.o transaction.o \
|
||||
delayed-ref.o
|
||||
cmds_objects = cmds/subvolume.o cmds/filesystem.o cmds/device.o cmds/scrub.o \
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
#define FIELD_BUF_LEN 80
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "crc32c.h"
|
||||
#include "extent-cache.h"
|
||||
#include "find-root.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "commands.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
#define BUFFER_SIZE SZ_64K
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static void print_usage(void)
|
||||
{
|
||||
|
|
2
btrfs.c
2
btrfs.c
|
@ -23,7 +23,7 @@
|
|||
#include "crc32c.h"
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const btrfs_cmd_group_usage[] = {
|
||||
"btrfs [--help] [--version] <group> [<group>...] <command> [<args>]",
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "transaction.h"
|
||||
#include "utils.h"
|
||||
#include "volumes.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static char *device;
|
||||
static int force = 0;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include "backref.h"
|
||||
#include "kernel-shared/ulist.h"
|
||||
#include "hash.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "check/mode-common.h"
|
||||
#include "check/mode-original.h"
|
||||
#include "check/mode-lowmem.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const balance_cmd_group_usage[] = {
|
||||
"btrfs balance <command> [options] <path>",
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "cmds/filesystem-usage.h"
|
||||
|
||||
#include "commands.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "mkfs/common.h"
|
||||
|
||||
static const char * const device_cmd_group_usage[] = {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "rbtree.h"
|
||||
|
||||
#include "interval_tree_generic.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "fsfeatures.h"
|
||||
|
||||
static int summarize = 0;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "disk-io.h"
|
||||
|
||||
#include "version.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
/*
|
||||
* Add the chunk info to the chunk_info list
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "cmds/filesystem-usage.h"
|
||||
#include "list_sort.h"
|
||||
#include "disk-io.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "fsfeatures.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "utils.h"
|
||||
#include "commands.h"
|
||||
#include "crc32c.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static int check_csum_sblock(void *sb, int csum_size)
|
||||
{
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "volumes.h"
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static void print_extents(struct extent_buffer *eb)
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "volumes.h"
|
||||
#include "utils.h"
|
||||
#include "commands.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static int verbose = 0;
|
||||
static int no_pretty = 0;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "commands.h"
|
||||
#include "btrfs-list.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const inspect_cmd_group_usage[] = {
|
||||
"btrfs inspect-internal <command> <args>",
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "props.h"
|
||||
#include "ctree.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const property_cmd_group_usage[] = {
|
||||
"btrfs property get/set/list [-t <type>] <object> [<name>] [value]",
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "commands.h"
|
||||
#include "qgroup.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const qgroup_cmd_group_usage[] = {
|
||||
"btrfs qgroup <command> [options] <path>",
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const quota_cmd_group_usage[] = {
|
||||
"btrfs quota <command> [options] <path>",
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
#include "send-stream.h"
|
||||
#include "send-utils.h"
|
||||
#include "send-dump.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
/*
|
||||
* Default is 1 for historical reasons, changing may break scripts that expect
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include "disk-io.h"
|
||||
|
||||
#include "commands.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "mkfs/common.h"
|
||||
|
||||
static int print_replace_status(int fd, const char *path, int once);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "disk-io.h"
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "cmds/rescue.h"
|
||||
|
||||
static const char * const rescue_cmd_group_usage[] = {
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
#include "volumes.h"
|
||||
#include "utils.h"
|
||||
#include "commands.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static char fs_name[PATH_MAX];
|
||||
static char path_name[PATH_MAX];
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
#include "disk-io.h"
|
||||
|
||||
#include "commands.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static const char * const scrub_cmd_group_usage[] = {
|
||||
"btrfs scrub <command> [options] <path>|<device>",
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
#include "send.h"
|
||||
#include "send-utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
#define SEND_BUFFER_SIZE SZ_64K
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "utils.h"
|
||||
#include "btrfs-list.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
static int wait_for_subvolume_cleaning(int fd, size_t count, uint64_t *ids,
|
||||
int sleep_interval)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "commands.h"
|
||||
#include "utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
|
||||
#define USAGE_SHORT 1U
|
||||
#define USAGE_LONG 2U
|
|
@ -97,7 +97,7 @@
|
|||
#include "transaction.h"
|
||||
#include "utils.h"
|
||||
#include "common/task-utils.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "mkfs/common.h"
|
||||
#include "convert/common.h"
|
||||
#include "convert/source-fs.h"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "utils.h"
|
||||
#include "volumes.h"
|
||||
#include "extent_io.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "image/metadump.h"
|
||||
#include "image/sanitize.h"
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#include "transaction.h"
|
||||
#include "utils.h"
|
||||
#include "list_sort.h"
|
||||
#include "help.h"
|
||||
#include "common/help.h"
|
||||
#include "rbtree-utils.h"
|
||||
#include "mkfs/common.h"
|
||||
#include "mkfs/rootdir.h"
|
||||
|
|
Loading…
Reference in a new issue