static int _pvmove = 0;
static int _obtain_device_list_from_udev = DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV;
static enum dev_ext_e _external_device_info_source = DEV_EXT_NONE;
-static int _trust_cache = 0; /* Don't scan when incomplete VGs encountered */
static int _debug_level = 0;
static int _debug_classes_logged = 0;
static int _security_level = SECURITY_LEVEL;
_external_device_info_source = src;
}
-void init_trust_cache(int trustcache)
-{
- _trust_cache = trustcache;
-}
-
void init_security_level(int level)
{
_security_level = level;
return _external_device_info_source;
}
-int trust_cache(void)
-{
- return _trust_cache;
-}
-
int background_polling(void)
{
return _background_polling;
void init_pvmove(int level);
void init_external_device_info_source(enum dev_ext_e src);
void init_obtain_device_list_from_udev(int device_list_from_udev);
-void init_trust_cache(int trustcache);
void init_debug(int level);
void init_debug_classes_logged(int classes);
void init_cmd_name(int status);
int pvmove_mode(void);
int obtain_device_list_from_udev(void);
enum dev_ext_e external_device_info_source(void);
-int trust_cache(void);
int verbose_level(void);
int silent_mode(void);
int debug_level(void);
"merging the split image (see --mergemirrors) or permanently splitting\n"
"the image (see --splitmirrors with --name.\n")
-/* TODO: hide this? */
arg(trustcache_ARG, '\0', "trustcache", 0, 0, 0,
- "Avoids certain device scanning during command processing. Do not use.\n")
+ "No longer used.\n")
arg(type_ARG, '\0', "type", segtype_VAL, 0, 0,
"The LV type, also known as \"segment type\" or \"segtype\".\n"
--nameprefixes, --noheadings, --nosuffix,
--options String, --readonly, --reportformat ReportFmt, --rows,
--select String, --separator String, --shared, --sort String,
---trustcache, --unbuffered, --units Units, --unquoted
+--unbuffered, --units Units, --unquoted
#
# options for config, dumpconfig, lvmconfig
lvs
OO: --history, --segments, OO_REPORT
OP: VG|LV|Tag ...
-IO: --partial, --ignoreskippedcluster
+IO: --partial, --ignoreskippedcluster, --trustcache
ID: lvs_general
---
pvs
OO: --segments, OO_REPORT
OP: PV|Tag ...
-IO: --partial, --ignoreskippedcluster
+IO: --partial, --ignoreskippedcluster, --trustcache
ID: pvs_general
---
vgs
OO: OO_REPORT
OP: VG|Tag ...
-IO: --partial, --ignoreskippedcluster
+IO: --partial, --ignoreskippedcluster, --trustcache
ID: vgs_general
---
fullreport
OO: OO_REPORT
OP: VG ...
-IO: --partial, --ignoreskippedcluster
+IO: --partial, --ignoreskippedcluster, --trustcache
ID: fullreport_general
lastlog
if (arg_is_set(cmd, binary_ARG))
cmd->report_binary_values_as_numeric = 1;
- if (arg_is_set(cmd, trustcache_ARG)) {
- if (arg_is_set(cmd, all_ARG)) {
- log_error("--trustcache is incompatible with --all");
- return EINVALID_CMD_LINE;
- }
- init_trust_cache(1);
- log_warn("WARNING: Cache file of PVs will be trusted. "
- "New devices holding PVs may get ignored.");
- } else
- init_trust_cache(0);
-
if (arg_is_set(cmd, noudevsync_ARG))
cmd->current_settings.udev_sync = 0;