diff options
Diffstat (limited to 'tools/tools.h')
-rw-r--r-- | tools/tools.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/tools/tools.h b/tools/tools.h index 2196dbaa4..4ed893fc4 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. - * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004-2015 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * @@ -16,18 +16,15 @@ #ifndef _LVM_TOOLS_H #define _LVM_TOOLS_H -#define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 - -#include "configure.h" -#include <assert.h> -#include "libdevmapper.h" +#include "tool.h" #include "lvm-logging.h" + #include "activate.h" #include "archiver.h" #include "lvmcache.h" #include "lvmetad.h" +#include "lvmlockd.h" #include "lvm-version.h" #include "config.h" #include "defaults.h" @@ -46,11 +43,7 @@ #include "toolcontext.h" #include "toollib.h" -#include <stdlib.h> -#include <unistd.h> #include <ctype.h> -#include <limits.h> -#include <stdarg.h> #include <sys/types.h> #define CMD_LEN 256 @@ -102,10 +95,16 @@ struct arg_value_group_list { #define CACHE_VGMETADATA 0x00000001 #define PERMITTED_READ_ONLY 0x00000002 -/* Process all vgs if none specified on the command line. */ +/* Process all VGs if none specified on the command line. */ #define ALL_VGS_IS_DEFAULT 0x00000004 /* Process all devices with --all if none are specified on the command line. */ #define ENABLE_ALL_DEVS 0x00000008 +/* Exactly one VG name argument required. */ +#define ONE_VGNAME_ARG 0x00000010 +/* Command needs a shared lock on a VG; it only reads the VG. */ +#define LOCKD_VG_SH 0x00000020 +/* Command does not process any metadata. */ +#define NO_METADATA_PROCESSING 0x00000040 /* a register of the lvm commands */ struct command { @@ -142,6 +141,7 @@ int metadatatype_arg(struct cmd_context *cmd, struct arg_values *av); int units_arg(struct cmd_context *cmd, struct arg_values *av); int segtype_arg(struct cmd_context *cmd, struct arg_values *av); int alloc_arg(struct cmd_context *cmd, struct arg_values *av); +int locktype_arg(struct cmd_context *cmd, struct arg_values *av); int readahead_arg(struct cmd_context *cmd, struct arg_values *av); int metadatacopies_arg(struct cmd_context *cmd __attribute__((unused)), struct arg_values *av); @@ -172,7 +172,8 @@ int32_t grouped_arg_int_value(const struct arg_values *av, int a, const int32_t const char *command_name(struct cmd_context *cmd); -int pvmove_poll(struct cmd_context *cmd, const char *pv, unsigned background); +int pvmove_poll(struct cmd_context *cmd, const char *pv_name, const char *uuid, + const char *vg_name, const char *lv_name, unsigned background); int lvconvert_poll(struct cmd_context *cmd, struct logical_volume *lv, unsigned background); int mirror_remove_missing(struct cmd_context *cmd, |