main - dmsetup: fix measure handling
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a3352f08f687e1db4bb...
Commit: a3352f08f687e1db4bb20a2f1b1c52bb888b9d97
Parent: e62a71f3dd97795ea64b2f3948dd8629c2dac8b8
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Mon Sep 27 18:26:35 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Mon Sep 27 18:45:25 2021 +0200
dmsetup: fix measure handling
Previous patch f853a1bc7afdebb44aeb8c1167e8784d155cad84 enabled
ima measurement unconditionally for every status call,
but it needs to be set only for 'dmsetup measure' command.
---
libdm/dm-tools/dmsetup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c
index 4641c1f18..07b6cca8a 100644
--- a/libdm/dm-tools/dmsetup.c
+++ b/libdm/dm-tools/dmsetup.c
@@ -2446,7 +2446,8 @@ static int _status(CMD_ARGS)
if (_switches[NOFLUSH_ARG] && !dm_task_no_flush(dmt))
goto_out;
- if (!dm_task_ima_measurement(dmt))
+ if (!strcmp(cmd->name, "measure") &&
+ !dm_task_ima_measurement(dmt))
goto_out;
if (!_task_run(dmt))
2 years, 2 months
main - lvmlockd: update error message
by David Teigland
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e62a71f3dd97795ea64...
Commit: e62a71f3dd97795ea64b2f3948dd8629c2dac8b8
Parent: a1cb33b633c7d4c76e86bc71ceae043555366a4e
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Fri Sep 24 15:39:36 2021 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Fri Sep 24 15:40:20 2021 -0500
lvmlockd: update error message
refer specifically to the "use_lvmlockd" setting in lvm.conf
---
tools/toollib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/toollib.c b/tools/toollib.c
index 0576a76fb..606d35981 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -677,7 +677,7 @@ int vgcreate_params_set_from_args(struct cmd_context *cmd,
}
} else {
- log_error("Using a shared lock type requires lvmlockd.");
+ log_error("Using a shared lock type requires lvmlockd (lvm.conf use_lvmlockd.)");
return 0;
}
2 years, 2 months
main - devicemapper: in sync with libdm
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a1cb33b633c7d4c76e8...
Commit: a1cb33b633c7d4c76e86bc71ceae043555366a4e
Parent: f853a1bc7afdebb44aeb8c1167e8784d155cad84
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 17:30:42 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Sep 23 16:49:58 2021 +0200
devicemapper: in sync with libdm
---
device_mapper/all.h | 1 +
device_mapper/ioctl/libdm-iface.c | 19 ++++++++++++++++++-
device_mapper/ioctl/libdm-targets.h | 1 +
device_mapper/libdm-common.c | 1 +
device_mapper/misc/dm-ioctl.h | 13 ++++++++++---
5 files changed, 31 insertions(+), 4 deletions(-)
diff --git a/device_mapper/all.h b/device_mapper/all.h
index 489ca1c69..17f78d989 100644
--- a/device_mapper/all.h
+++ b/device_mapper/all.h
@@ -234,6 +234,7 @@ int dm_task_suppress_identical_reload(struct dm_task *dmt);
int dm_task_secure_data(struct dm_task *dmt);
int dm_task_retry_remove(struct dm_task *dmt);
int dm_task_deferred_remove(struct dm_task *dmt);
+int dm_task_ima_measurement(struct dm_task *dmt);
void dm_task_skip_reload_params_compare(struct dm_task *dmt);
/*
diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c
index b4f7a986d..533bb9eea 100644
--- a/device_mapper/ioctl/libdm-iface.c
+++ b/device_mapper/ioctl/libdm-iface.c
@@ -926,6 +926,13 @@ int dm_task_secure_data(struct dm_task *dmt)
return 1;
}
+int dm_task_ima_measurement(struct dm_task *dmt)
+{
+ dmt->ima_measurement = 1;
+
+ return 1;
+}
+
int dm_task_retry_remove(struct dm_task *dmt)
{
dmt->retry_remove = 1;
@@ -1293,6 +1300,14 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt, unsigned repeat_count)
}
dmi->flags |= DM_UUID_FLAG;
}
+ if (dmt->ima_measurement) {
+ if (_dm_version_minor < 45) {
+ log_error("WARNING: IMA measurement unsupported by "
+ "kernel. Aborting operation.");
+ goto bad;
+ }
+ dmi->flags |= DM_IMA_MEASUREMENT_FLAG;
+ }
dmi->target_count = count;
dmi->event_nr = dmt->event_nr;
@@ -1488,6 +1503,7 @@ static int _create_and_load_v4(struct dm_task *dmt)
task->head = dmt->head;
task->tail = dmt->tail;
task->secure_data = dmt->secure_data;
+ task->ima_measurement = dmt->ima_measurement;
r = dm_task_run(task);
@@ -1901,7 +1917,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
}
log_debug_activation("dm %s %s%s %s%s%s %s%.0d%s%.0d%s"
- "%s[ %s%s%s%s%s%s%s%s%s] %.0" PRIu64 " %s [%u] (*%u)",
+ "%s[ %s%s%s%s%s%s%s%s%s%s] %.0" PRIu64 " %s [%u] (*%u)",
_cmd_data_v4[dmt->type].name,
dmt->new_uuid ? "UUID " : "",
dmi->name, dmi->uuid, dmt->newname ? " " : "",
@@ -1919,6 +1935,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
dmt->retry_remove ? "retryremove " : "",
dmt->deferred_remove ? "deferredremove " : "",
dmt->secure_data ? "securedata " : "",
+ dmt->ima_measurement ? "ima_measurement " : "",
dmt->query_inactive_table ? "inactive " : "",
dmt->enable_checks ? "enablechecks " : "",
dmt->sector, _sanitise_message(dmt->message),
diff --git a/device_mapper/ioctl/libdm-targets.h b/device_mapper/ioctl/libdm-targets.h
index 9786a7eda..c853e22aa 100644
--- a/device_mapper/ioctl/libdm-targets.h
+++ b/device_mapper/ioctl/libdm-targets.h
@@ -70,6 +70,7 @@ struct dm_task {
int enable_checks;
int expected_errno;
int ioctl_errno;
+ int ima_measurement;
int record_timestamp;
diff --git a/device_mapper/libdm-common.c b/device_mapper/libdm-common.c
index a90ece78a..2a03aff10 100644
--- a/device_mapper/libdm-common.c
+++ b/device_mapper/libdm-common.c
@@ -338,6 +338,7 @@ struct dm_task *dm_task_create(int type)
dmt->new_uuid = 0;
dmt->secure_data = 0;
dmt->record_timestamp = 0;
+ dmt->ima_measurement = 0;
return dmt;
}
diff --git a/device_mapper/misc/dm-ioctl.h b/device_mapper/misc/dm-ioctl.h
index c00fa5b4f..f727e0f70 100644
--- a/device_mapper/misc/dm-ioctl.h
+++ b/device_mapper/misc/dm-ioctl.h
@@ -1,6 +1,7 @@
+/* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */
/*
* Copyright (C) 2001 - 2003 Sistina Software (UK) Limited.
- * Copyright (C) 2004 - 2017 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004 - 2021 Red Hat, Inc. All rights reserved.
*
* This file is released under the LGPL.
*/
@@ -288,9 +289,9 @@ enum {
#define DM_GET_TARGET_VERSION _IOWR(DM_IOCTL, DM_GET_TARGET_VERSION_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4
-#define DM_VERSION_MINOR 36
+#define DM_VERSION_MINOR 45
#define DM_VERSION_PATCHLEVEL 0
-#define DM_VERSION_EXTRA "-ioctl (2017-06-09)"
+#define DM_VERSION_EXTRA "-ioctl (2021-03-22)"
/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */
@@ -378,4 +379,10 @@ enum {
*/
#define DM_INTERNAL_SUSPEND_FLAG (1 << 18) /* Out */
+/*
+ * If set, returns in the in buffer passed by UM, the raw table information
+ * that would be measured by IMA subsystem on device state change.
+ */
+#define DM_IMA_MEASUREMENT_FLAG (1 << 19) /* In */
+
#endif /* _LINUX_DM_IOCTL_H */
2 years, 2 months
main - libdm: dmsetup measure support for IMA
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f853a1bc7afdebb44ae...
Commit: f853a1bc7afdebb44aeb8c1167e8784d155cad84
Parent: 707e7d762e2668af308457fd6d8b8375e18b0207
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: Tue Jul 13 02:06:04 2021 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Sep 23 16:49:28 2021 +0200
libdm: dmsetup measure support for IMA
Add support for DM_IMA_MEASUREMENT_FLAG with
DM_TABLE_STATUS_CMD.
This feature requires DM version 4.45 (5.15+ kernels)
---
WHATS_NEW_DM | 1 +
libdm/.exported_symbols.DM_1_02_181 | 1 +
libdm/dm-tools/dmsetup.c | 4 ++++
libdm/ioctl/libdm-iface.c | 19 ++++++++++++++++++-
libdm/ioctl/libdm-targets.h | 1 +
libdm/libdevmapper.h | 1 +
libdm/libdm-common.c | 1 +
libdm/misc/dm-ioctl.h | 12 +++++++++---
man/dmsetup.8_main | 15 +++++++++++++++
9 files changed, 51 insertions(+), 4 deletions(-)
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index 94d782c56..c7029e437 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.181 -
===================================
+ Add IMA support with 'dmsetup measure' command.
Add defines DM_NAME_LIST_FLAG_HAS_UUID, DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID.
Enhance tracking of activated devices when preloading dm tree.
Fix bug in construction of cache table line (regression from 1.02.159).
diff --git a/libdm/.exported_symbols.DM_1_02_181 b/libdm/.exported_symbols.DM_1_02_181
new file mode 100644
index 000000000..4ab603b68
--- /dev/null
+++ b/libdm/.exported_symbols.DM_1_02_181
@@ -0,0 +1 @@
+dm_task_ima_measurement
diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c
index 0f260b3f4..4641c1f18 100644
--- a/libdm/dm-tools/dmsetup.c
+++ b/libdm/dm-tools/dmsetup.c
@@ -2446,6 +2446,9 @@ static int _status(CMD_ARGS)
if (_switches[NOFLUSH_ARG] && !dm_task_no_flush(dmt))
goto_out;
+ if (!dm_task_ima_measurement(dmt))
+ goto_out;
+
if (!_task_run(dmt))
goto_out;
@@ -6255,6 +6258,7 @@ static struct command _dmsetup_commands[] = {
{"reload", "<device> [<table>|<table_file>]", 0, 2, 0, 0, _load},
{"wipe_table", "[-f|--force] [--noflush] [--nolockfs] <device>...", 0, -1, 2, 0, _error_device},
{"rename", "<device> [--setuuid] <new_name_or_uuid>", 1, 2, 0, 0, _rename},
+ {"measure", "[<device>...]", 0, -1, 2, 0, _status},
{"message", "<device> <sector> <message>", 2, -1, 0, 0, _message},
{"ls", "[--target <target_type>] [--exec <command>] [-o <options>] [--tree]", 0, 0, 0, 0, _ls},
{"info", "[<device>...]", 0, -1, 1, 0, _info},
diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c
index d8f1c389d..28589a15c 100644
--- a/libdm/ioctl/libdm-iface.c
+++ b/libdm/ioctl/libdm-iface.c
@@ -929,6 +929,13 @@ int dm_task_secure_data(struct dm_task *dmt)
return 1;
}
+int dm_task_ima_measurement(struct dm_task *dmt)
+{
+ dmt->ima_measurement = 1;
+
+ return 1;
+}
+
int dm_task_retry_remove(struct dm_task *dmt)
{
dmt->retry_remove = 1;
@@ -1288,6 +1295,14 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt, unsigned repeat_count)
}
dmi->flags |= DM_UUID_FLAG;
}
+ if (dmt->ima_measurement) {
+ if (_dm_version_minor < 45) {
+ log_error("WARNING: IMA measurement unsupported by "
+ "kernel. Aborting operation.");
+ goto bad;
+ }
+ dmi->flags |= DM_IMA_MEASUREMENT_FLAG;
+ }
dmi->target_count = count;
dmi->event_nr = dmt->event_nr;
@@ -1489,6 +1504,7 @@ static int _create_and_load_v4(struct dm_task *dmt)
task->head = dmt->head;
task->tail = dmt->tail;
task->secure_data = dmt->secure_data;
+ task->ima_measurement = dmt->ima_measurement;
r = dm_task_run(task);
@@ -1877,7 +1893,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
}
log_debug_activation("dm %s %s%s %s%s%s %s%.0d%s%.0d%s"
- "%s[ %s%s%s%s%s%s%s%s%s] %.0" PRIu64 " %s [%u] (*%u)",
+ "%s[ %s%s%s%s%s%s%s%s%s%s] %.0" PRIu64 " %s [%u] (*%u)",
_cmd_data_v4[dmt->type].name,
dmt->new_uuid ? "UUID " : "",
dmi->name, dmi->uuid, dmt->newname ? " " : "",
@@ -1895,6 +1911,7 @@ static struct dm_ioctl *_do_dm_ioctl(struct dm_task *dmt, unsigned command,
dmt->retry_remove ? "retryremove " : "",
dmt->deferred_remove ? "deferredremove " : "",
dmt->secure_data ? "securedata " : "",
+ dmt->ima_measurement ? "ima_measurement " : "",
dmt->query_inactive_table ? "inactive " : "",
dmt->enable_checks ? "enablechecks " : "",
dmt->sector, _sanitise_message(dmt->message),
diff --git a/libdm/ioctl/libdm-targets.h b/libdm/ioctl/libdm-targets.h
index 294210d2b..022b02c72 100644
--- a/libdm/ioctl/libdm-targets.h
+++ b/libdm/ioctl/libdm-targets.h
@@ -69,6 +69,7 @@ struct dm_task {
int enable_checks;
int expected_errno;
int ioctl_errno;
+ int ima_measurement;
int record_timestamp;
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
index ac31b59da..e9412da7d 100644
--- a/libdm/libdevmapper.h
+++ b/libdm/libdevmapper.h
@@ -235,6 +235,7 @@ int dm_task_suppress_identical_reload(struct dm_task *dmt);
int dm_task_secure_data(struct dm_task *dmt);
int dm_task_retry_remove(struct dm_task *dmt);
int dm_task_deferred_remove(struct dm_task *dmt);
+int dm_task_ima_measurement(struct dm_task *dmt);
/*
* Record timestamp immediately after the ioctl returns.
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
index 27be1d02f..734a0127e 100644
--- a/libdm/libdm-common.c
+++ b/libdm/libdm-common.c
@@ -336,6 +336,7 @@ struct dm_task *dm_task_create(int type)
dmt->new_uuid = 0;
dmt->secure_data = 0;
dmt->record_timestamp = 0;
+ dmt->ima_measurement = 0;
return dmt;
}
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index cecfd5909..cdb38f639 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2001 - 2003 Sistina Software (UK) Limited.
- * Copyright (C) 2004 - 2017 Red Hat, Inc. All rights reserved.
+ * Copyright (C) 2004 - 2021 Red Hat, Inc. All rights reserved.
*
* This file is released under the LGPL.
*/
@@ -287,9 +287,9 @@ enum {
#define DM_GET_TARGET_VERSION _IOWR(DM_IOCTL, DM_GET_TARGET_VERSION_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4
-#define DM_VERSION_MINOR 36
+#define DM_VERSION_MINOR 45
#define DM_VERSION_PATCHLEVEL 0
-#define DM_VERSION_EXTRA "-ioctl (2017-06-09)"
+#define DM_VERSION_EXTRA "-ioctl (2021-03-22)"
/* Status bits */
#define DM_READONLY_FLAG (1 << 0) /* In/Out */
@@ -377,4 +377,10 @@ enum {
*/
#define DM_INTERNAL_SUSPEND_FLAG (1 << 18) /* Out */
+/*
+ * If set, returns in the in buffer passed by UM, the raw table information
+ * that would be measured by IMA subsystem on device state change.
+ */
+#define DM_IMA_MEASUREMENT_FLAG (1 << 19) /* In */
+
#endif /* _LINUX_DM_IOCTL_H */
diff --git a/man/dmsetup.8_main b/man/dmsetup.8_main
index 359b06ce3..7576b54bc 100644
--- a/man/dmsetup.8_main
+++ b/man/dmsetup.8_main
@@ -140,6 +140,14 @@ dmsetup \(em low level logical volume management
.
.HP
.B dmsetup
+.de CMD_MEASURE
+. BR measure
+. RI [ device_name ...]
+..
+.CMD_MEASURE
+.
+.HP
+.B dmsetup
.de CMD_MESSAGE
. BR message
. IR device_name
@@ -710,6 +718,13 @@ must be manually corrected by deactivating the device first and then
reactivating it with proper mangling mode used (see also \fB--manglename\fP).
.
.HP
+.CMD_MEASURE
+.br
+Show the data that \fIdevice_name\fP would report to the IMA subsystem
+if a measurement was triggered at the current time.
+This is for debugging and does not actually trigger a measurement.
+.
+.HP
.CMD_MESSAGE
.br
Send message to target. If sector not needed use 0.
2 years, 2 months
main - devicemapper: add DM_NAME_LIST_FLAG
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=707e7d762e2668af308...
Commit: 707e7d762e2668af308457fd6d8b8375e18b0207
Parent: 566c2f1828d371d602eca0353905128d069a159b
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 21:24:39 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Sep 23 16:49:16 2021 +0200
devicemapper: add DM_NAME_LIST_FLAG
Match libdm part
---
device_mapper/misc/dm-ioctl.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/device_mapper/misc/dm-ioctl.h b/device_mapper/misc/dm-ioctl.h
index cc2374c36..c00fa5b4f 100644
--- a/device_mapper/misc/dm-ioctl.h
+++ b/device_mapper/misc/dm-ioctl.h
@@ -194,8 +194,22 @@ struct dm_name_list {
uint32_t next; /* offset to the next record from
the _start_ of this */
char name[0];
+
+ /*
+ * The following members can be accessed by taking a pointer that
+ * points immediately after the terminating zero character in "name"
+ * and aligning this pointer to next 8-byte boundary.
+ * Uuid is present if the flag DM_NAME_LIST_FLAG_HAS_UUID is set.
+ *
+ * uint32_t event_nr;
+ * uint32_t flags;
+ * char uuid[0];
+ */
};
+#define DM_NAME_LIST_FLAG_HAS_UUID 1
+#define DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID 2
+
/*
* Used to retrieve the target versions
*/
2 years, 2 months
main - libdm: support DM_NAME_LIST_FLAG
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=566c2f1828d371d602e...
Commit: 566c2f1828d371d602eca0353905128d069a159b
Parent: ee15065a0f77bf01d1f4184462844f690cde64a8
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 21:22:59 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Thu Sep 23 16:49:14 2021 +0200
libdm: support DM_NAME_LIST_FLAG
Kernel patch 8b638081bd4520f63db1defc660666ec5f65bc15
introduced support to return UUID in DM_LIST_DEVICES_CMD.
Useful when asking for UUID of each device where the list
could be now returned directly with NAME && UUID for each device.
Returning UUID is done in backward-compatible way. There's one unused
32-bit word value after the event number. This patch sets the bit
DM_NAME_LIST_FLAG_HAS_UUID if UUID is present and
DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID if it isn't (if none of these bits is
set, then we have an old kernel that doesn't support returning UUIDs). The
UUID is stored after this word. The 'next' value is updated to point after
the UUID, so that old version of libdevmapper will skip the UUID without
attempting to interpret it.
---
WHATS_NEW_DM | 1 +
libdm/misc/dm-ioctl.h | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM
index c4a22441c..94d782c56 100644
--- a/WHATS_NEW_DM
+++ b/WHATS_NEW_DM
@@ -1,5 +1,6 @@
Version 1.02.181 -
===================================
+ Add defines DM_NAME_LIST_FLAG_HAS_UUID, DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID.
Enhance tracking of activated devices when preloading dm tree.
Fix bug in construction of cache table line (regression from 1.02.159).
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index 52a7a93d1..cecfd5909 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -194,8 +194,22 @@ struct dm_name_list {
uint32_t next; /* offset to the next record from
the _start_ of this */
char name[0];
+
+ /*
+ * The following members can be accessed by taking a pointer that
+ * points immediately after the terminating zero character in "name"
+ * and aligning this pointer to next 8-byte boundary.
+ * Uuid is present if the flag DM_NAME_LIST_FLAG_HAS_UUID is set.
+ *
+ * uint32_t event_nr;
+ * uint32_t flags;
+ * char uuid[0];
+ */
};
+#define DM_NAME_LIST_FLAG_HAS_UUID 1
+#define DM_NAME_LIST_FLAG_DOESNT_HAVE_UUID 2
+
/*
* Used to retrieve the target versions
*/
2 years, 2 months
main - gcc: match types
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ee15065a0f77bf01d1f...
Commit: ee15065a0f77bf01d1f4184462844f690cde64a8
Parent: 9eafd44734d32207dce7d0b0829e3c94c07d95c9
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 16:45:33 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Sep 22 17:18:50 2021 +0200
gcc: match types
---
daemons/dmeventd/libdevmapper-event.c | 2 +-
device_mapper/datastruct/bitset.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/daemons/dmeventd/libdevmapper-event.c b/daemons/dmeventd/libdevmapper-event.c
index 237be9fec..30df1da21 100644
--- a/daemons/dmeventd/libdevmapper-event.c
+++ b/daemons/dmeventd/libdevmapper-event.c
@@ -710,7 +710,7 @@ static char *_fetch_string(char **src, const int delimiter)
{
char *p, *ret;
size_t len = (p = strchr(*src, delimiter)) ?
- p - *src : strlen(*src);
+ (size_t)(p - *src) : strlen(*src);
if ((ret = strndup(*src, len)))
*src += len + 1;
diff --git a/device_mapper/datastruct/bitset.c b/device_mapper/datastruct/bitset.c
index c99927cc1..080ed760e 100644
--- a/device_mapper/datastruct/bitset.c
+++ b/device_mapper/datastruct/bitset.c
@@ -150,7 +150,8 @@ dm_bitset_t dm_bitset_parse_list(const char *str, struct dm_pool *mem,
size_t min_num_bits)
{
unsigned a, b;
- int c, old_c, totaldigits, ndigits, nmaskbits;
+ int c, old_c, totaldigits, ndigits;
+ size_t nmaskbits;
int at_start, in_range;
dm_bitset_t mask = NULL;
const char *start = str;
2 years, 2 months
main - gcc: use more zero length arrays
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9eafd44734d32207dce...
Commit: 9eafd44734d32207dce7d0b0829e3c94c07d95c9
Parent: 4515acf73430a8734f477b10ae6e3473d02999ae
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 17:05:09 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Sep 22 17:18:50 2021 +0200
gcc: use more zero length arrays
Define last array struct member with zero size.
---
base/data-struct/hash.c | 2 +-
device_mapper/libdm-common.c | 2 +-
device_mapper/misc/dm-ioctl.h | 8 ++++----
lib/activate/fs.c | 2 +-
lib/device/dev-cache.c | 2 +-
lib/label/label.c | 2 +-
libdm/datastruct/hash.c | 2 +-
libdm/libdm-common.c | 2 +-
libdm/misc/dm-ioctl.h | 8 ++++----
libdm/misc/dm-log-userspace.h | 2 +-
10 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/base/data-struct/hash.c b/base/data-struct/hash.c
index 5fee9cf85..db3dcd543 100644
--- a/base/data-struct/hash.c
+++ b/base/data-struct/hash.c
@@ -23,7 +23,7 @@ struct dm_hash_node {
unsigned data_len;
unsigned keylen;
unsigned hash;
- char key[];
+ char key[0];
};
struct dm_hash_table {
diff --git a/device_mapper/libdm-common.c b/device_mapper/libdm-common.c
index af2178e95..a90ece78a 100644
--- a/device_mapper/libdm-common.c
+++ b/device_mapper/libdm-common.c
@@ -1445,7 +1445,7 @@ struct node_op_parms {
char *old_name;
int warn_if_udev_failed;
unsigned rely_on_udev;
- char names[];
+ char names[0];
};
static void _store_str(char **pos, char **ptr, const char *str)
diff --git a/device_mapper/misc/dm-ioctl.h b/device_mapper/misc/dm-ioctl.h
index 49954a764..cc2374c36 100644
--- a/device_mapper/misc/dm-ioctl.h
+++ b/device_mapper/misc/dm-ioctl.h
@@ -183,7 +183,7 @@ struct dm_target_spec {
struct dm_target_deps {
uint32_t count; /* Array size */
uint32_t padding; /* unused */
- uint64_t dev[]; /* out */
+ uint64_t dev[0]; /* out */
};
/*
@@ -193,7 +193,7 @@ struct dm_name_list {
uint64_t dev;
uint32_t next; /* offset to the next record from
the _start_ of this */
- char name[];
+ char name[0];
};
/*
@@ -203,7 +203,7 @@ struct dm_target_versions {
uint32_t next;
uint32_t version[3];
- char name[];
+ char name[0];
};
/*
@@ -212,7 +212,7 @@ struct dm_target_versions {
struct dm_target_msg {
uint64_t sector; /* Device sector */
- char message[];
+ char message[0];
};
/*
diff --git a/lib/activate/fs.c b/lib/activate/fs.c
index 60ced8fb5..3e0692c9d 100644
--- a/lib/activate/fs.c
+++ b/lib/activate/fs.c
@@ -313,7 +313,7 @@ struct fs_op_parms {
char *lv_name;
char *dev;
char *old_lv_name;
- char names[];
+ char names[0];
};
static void _store_str(char **pos, char **ptr, const char *str)
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
index 0d1d4e36f..d454b5b30 100644
--- a/lib/device/dev-cache.c
+++ b/lib/device/dev-cache.c
@@ -39,7 +39,7 @@ struct dev_iter {
struct dir_list {
struct dm_list list;
- char dir[];
+ char dir[0];
};
static struct {
diff --git a/lib/label/label.c b/lib/label/label.c
index 4c243a43d..b5804c738 100644
--- a/lib/label/label.c
+++ b/lib/label/label.c
@@ -44,7 +44,7 @@ struct labeller_i {
struct dm_list list;
struct labeller *l;
- char name[];
+ char name[0];
};
static struct dm_list _labellers;
diff --git a/libdm/datastruct/hash.c b/libdm/datastruct/hash.c
index 67261f8da..054f5c359 100644
--- a/libdm/datastruct/hash.c
+++ b/libdm/datastruct/hash.c
@@ -20,7 +20,7 @@ struct dm_hash_node {
void *data;
unsigned data_len;
unsigned keylen;
- char key[];
+ char key[0];
};
struct dm_hash_table {
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
index 56fb436bc..27be1d02f 100644
--- a/libdm/libdm-common.c
+++ b/libdm/libdm-common.c
@@ -1443,7 +1443,7 @@ struct node_op_parms {
char *old_name;
int warn_if_udev_failed;
unsigned rely_on_udev;
- char names[];
+ char names[0];
};
static void _store_str(char **pos, char **ptr, const char *str)
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index 55dee2148..52a7a93d1 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -183,7 +183,7 @@ struct dm_target_spec {
struct dm_target_deps {
uint32_t count; /* Array size */
uint32_t padding; /* unused */
- uint64_t dev[]; /* out */
+ uint64_t dev[0]; /* out */
};
/*
@@ -193,7 +193,7 @@ struct dm_name_list {
uint64_t dev;
uint32_t next; /* offset to the next record from
the _start_ of this */
- char name[];
+ char name[0];
};
/*
@@ -203,7 +203,7 @@ struct dm_target_versions {
uint32_t next;
uint32_t version[3];
- char name[];
+ char name[0];
};
/*
@@ -212,7 +212,7 @@ struct dm_target_versions {
struct dm_target_msg {
uint64_t sector; /* Device sector */
- char message[];
+ char message[0];
};
/*
diff --git a/libdm/misc/dm-log-userspace.h b/libdm/misc/dm-log-userspace.h
index b243194d9..f28fa585e 100644
--- a/libdm/misc/dm-log-userspace.h
+++ b/libdm/misc/dm-log-userspace.h
@@ -412,7 +412,7 @@ struct dm_ulog_request {
uint32_t request_type; /* DM_ULOG_* defined above */
uint32_t data_size; /* How much data (not including this struct) */
- char data[];
+ char data[0];
};
#endif /* __DM_LOG_USERSPACE_H__ */
2 years, 2 months
main - make: generate
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4515acf73430a8734f4...
Commit: 4515acf73430a8734f477b10ae6e3473d02999ae
Parent: 4cfa80f02f769f723fad37d3e1d8697a106ee603
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Sep 22 14:48:58 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Sep 22 14:48:58 2021 +0200
make: generate
---
man/lvchange.8_pregen | 11 +++++++++++
man/lvconvert.8_pregen | 11 +++++++++++
man/lvcreate.8_pregen | 11 +++++++++++
man/lvdisplay.8_pregen | 9 +++++++++
man/lvextend.8_pregen | 11 +++++++++++
man/lvm-fullreport.8_pregen | 9 +++++++++
man/lvm-lvpoll.8_pregen | 9 +++++++++
man/lvmconfig.8_pregen | 9 +++++++++
man/lvmdevices.8_pregen | 13 +++++++++++++
man/lvmdiskscan.8_pregen | 9 +++++++++
man/lvreduce.8_pregen | 9 +++++++++
man/lvremove.8_pregen | 9 +++++++++
man/lvrename.8_pregen | 9 +++++++++
man/lvresize.8_pregen | 11 +++++++++++
man/lvs.8_pregen | 9 +++++++++
man/lvscan.8_pregen | 9 +++++++++
man/pvchange.8_pregen | 9 +++++++++
man/pvck.8_pregen | 11 +++++++++++
man/pvcreate.8_pregen | 9 +++++++++
man/pvdisplay.8_pregen | 9 +++++++++
man/pvmove.8_pregen | 9 +++++++++
man/pvremove.8_pregen | 9 +++++++++
man/pvresize.8_pregen | 9 +++++++++
man/pvs.8_pregen | 9 +++++++++
man/pvscan.8_pregen | 9 +++++++++
man/vgcfgbackup.8_pregen | 9 +++++++++
man/vgcfgrestore.8_pregen | 11 +++++++++++
man/vgchange.8_pregen | 11 +++++++++++
man/vgck.8_pregen | 9 +++++++++
man/vgconvert.8_pregen | 9 +++++++++
man/vgcreate.8_pregen | 9 +++++++++
man/vgdisplay.8_pregen | 9 +++++++++
man/vgexport.8_pregen | 9 +++++++++
man/vgextend.8_pregen | 9 +++++++++
man/vgimport.8_pregen | 9 +++++++++
man/vgimportclone.8_pregen | 9 +++++++++
man/vgimportdevices.8_pregen | 9 +++++++++
man/vgmerge.8_pregen | 9 +++++++++
man/vgmknodes.8_pregen | 9 +++++++++
man/vgreduce.8_pregen | 11 +++++++++++
man/vgremove.8_pregen | 9 +++++++++
man/vgrename.8_pregen | 9 +++++++++
man/vgs.8_pregen | 9 +++++++++
man/vgscan.8_pregen | 9 +++++++++
man/vgsplit.8_pregen | 9 +++++++++
45 files changed, 427 insertions(+)
diff --git a/man/lvchange.8_pregen b/man/lvchange.8_pregen
index 3cfa7330d..2ecd491d7 100644
--- a/man/lvchange.8_pregen
+++ b/man/lvchange.8_pregen
@@ -82,6 +82,8 @@ lvchange \(em Change the attributes of logical volume(s)
\fB--\fP[\fBraid\fP]\fBminrecoveryrate\fP \fISize\fP[k|UNIT]
.br
\fB--monitor\fP \fBy\fP|\fBn\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -423,6 +425,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -725,6 +729,13 @@ automated maintenance for the LV in reponse to specific events.
See \fBdmeventd\fP(8) for more information.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvconvert.8_pregen b/man/lvconvert.8_pregen
index 4fafe5d29..db52c588a 100644
--- a/man/lvconvert.8_pregen
+++ b/man/lvconvert.8_pregen
@@ -86,6 +86,8 @@ lvconvert \(em Change logical volume layout
\fB-m\fP|\fB--mirrors\fP [\fB+\fP|\fB-\fP]\fINumber\fP
.br
\fB-n\fP|\fB--name\fP \fIString\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -967,6 +969,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -1276,6 +1280,13 @@ When unspecified, a default name of "lvol#" is
generated, where # is a number generated by LVM.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvcreate.8_pregen b/man/lvcreate.8_pregen
index b642ad0c2..931613285 100644
--- a/man/lvcreate.8_pregen
+++ b/man/lvcreate.8_pregen
@@ -96,6 +96,8 @@ lvcreate \(em Create a logical volume
\fB--monitor\fP \fBy\fP|\fBn\fP
.br
\fB-n\fP|\fB--name\fP \fIString\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -809,6 +811,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -1163,6 +1167,13 @@ When unspecified, a default name of "lvol#" is
generated, where # is a number generated by LVM.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvdisplay.8_pregen b/man/lvdisplay.8_pregen
index 8ff34bc08..f74b49190 100644
--- a/man/lvdisplay.8_pregen
+++ b/man/lvdisplay.8_pregen
@@ -114,6 +114,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -257,6 +259,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvextend.8_pregen b/man/lvextend.8_pregen
index fa0aec63a..c0c32dd95 100644
--- a/man/lvextend.8_pregen
+++ b/man/lvextend.8_pregen
@@ -46,6 +46,8 @@ lvextend \(em Add space to a logical volume
\fB-m\fP|\fB--mirrors\fP \fINumber\fP
.br
\fB-n\fP|\fB--nofsck\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -255,6 +257,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -396,6 +400,13 @@ requires it. You may need to use --force to proceed with
this option.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvm-fullreport.8_pregen b/man/lvm-fullreport.8_pregen
index 399d4ff9a..19e6c4e56 100644
--- a/man/lvm-fullreport.8_pregen
+++ b/man/lvm-fullreport.8_pregen
@@ -110,6 +110,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -231,6 +233,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvm-lvpoll.8_pregen b/man/lvm-lvpoll.8_pregen
index cf18ebeec..e826a033e 100644
--- a/man/lvm-lvpoll.8_pregen
+++ b/man/lvm-lvpoll.8_pregen
@@ -66,6 +66,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -158,6 +160,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvmconfig.8_pregen b/man/lvmconfig.8_pregen
index 6cdb577c1..ee0ab0255 100644
--- a/man/lvmconfig.8_pregen
+++ b/man/lvmconfig.8_pregen
@@ -107,6 +107,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -238,6 +240,13 @@ The metadata profile to use for command configuration.
See \fBlvm.conf\fP(5) for more information about profiles.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvmdevices.8_pregen b/man/lvmdevices.8_pregen
index e581a8d01..d2c18d90b 100644
--- a/man/lvmdevices.8_pregen
+++ b/man/lvmdevices.8_pregen
@@ -41,6 +41,8 @@ lvmdevices \(em Manage the devices file
\fB--lockopt\fP \fIString\fP
.br
\fB--longhelp\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -239,6 +241,8 @@ Find the device with the given PVID and add it to the devices file.
.br
.RS 4
.ad l
+[ \fB--deviceidtype\fP \fIString\fP ]
+.br
[ COMMON_OPTIONS ]
.ad b
.RE
@@ -288,6 +292,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -390,6 +396,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvmdiskscan.8_pregen b/man/lvmdiskscan.8_pregen
index 5f31e8115..42b9c50f3 100644
--- a/man/lvmdiskscan.8_pregen
+++ b/man/lvmdiskscan.8_pregen
@@ -64,6 +64,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -139,6 +141,13 @@ Display long help text.
Only report PVs.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvreduce.8_pregen b/man/lvreduce.8_pregen
index 0a659e1c8..bfa7c720c 100644
--- a/man/lvreduce.8_pregen
+++ b/man/lvreduce.8_pregen
@@ -86,6 +86,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -197,6 +199,13 @@ requires it. You may need to use --force to proceed with
this option.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvremove.8_pregen b/man/lvremove.8_pregen
index a5ed82666..86252a627 100644
--- a/man/lvremove.8_pregen
+++ b/man/lvremove.8_pregen
@@ -92,6 +92,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -174,6 +176,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nohistory\fP
.br
Do not record history of LVs being removed.
diff --git a/man/lvrename.8_pregen b/man/lvrename.8_pregen
index 5b5975fa3..072699ff6 100644
--- a/man/lvrename.8_pregen
+++ b/man/lvrename.8_pregen
@@ -76,6 +76,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -152,6 +154,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvresize.8_pregen b/man/lvresize.8_pregen
index 36c1760fc..d1c50ba52 100644
--- a/man/lvresize.8_pregen
+++ b/man/lvresize.8_pregen
@@ -44,6 +44,8 @@ lvresize \(em Resize a logical volume
\fB--longhelp\fP
.br
\fB-n\fP|\fB--nofsck\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -213,6 +215,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -349,6 +353,13 @@ requires it. You may need to use --force to proceed with
this option.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvs.8_pregen b/man/lvs.8_pregen
index d822347a1..9e185b5b4 100644
--- a/man/lvs.8_pregen
+++ b/man/lvs.8_pregen
@@ -110,6 +110,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -241,6 +243,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/lvscan.8_pregen b/man/lvscan.8_pregen
index 40438a7d2..7a1bfeb65 100644
--- a/man/lvscan.8_pregen
+++ b/man/lvscan.8_pregen
@@ -69,6 +69,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -157,6 +159,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvchange.8_pregen b/man/pvchange.8_pregen
index 577352d2a..f2f96a180 100644
--- a/man/pvchange.8_pregen
+++ b/man/pvchange.8_pregen
@@ -113,6 +113,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -225,6 +227,13 @@ not store metadata in the metadata areas of the PV.
If no, lvm will store metadata on the PV.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvck.8_pregen b/man/pvck.8_pregen
index 6e55916a3..225ac7dc1 100644
--- a/man/pvck.8_pregen
+++ b/man/pvck.8_pregen
@@ -38,6 +38,8 @@ pvck \(em Check metadata on physical volumes
\fB--lockopt\fP \fIString\fP
.br
\fB--longhelp\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -309,6 +311,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -408,6 +412,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvcreate.8_pregen b/man/pvcreate.8_pregen
index 26e5141fe..1d9914ccf 100644
--- a/man/pvcreate.8_pregen
+++ b/man/pvcreate.8_pregen
@@ -162,6 +162,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -296,6 +298,13 @@ Specifies the type of on-disk metadata to use.
\fBlvm1\fP (or just \fB1\fP) is no longer used.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvdisplay.8_pregen b/man/pvdisplay.8_pregen
index ff5d9f50a..af8f0804c 100644
--- a/man/pvdisplay.8_pregen
+++ b/man/pvdisplay.8_pregen
@@ -112,6 +112,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -245,6 +247,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvmove.8_pregen b/man/pvmove.8_pregen
index a764ed9ca..095b592a4 100644
--- a/man/pvmove.8_pregen
+++ b/man/pvmove.8_pregen
@@ -116,6 +116,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -248,6 +250,13 @@ Display long help text.
Move only the extents belonging to the named LV.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvremove.8_pregen b/man/pvremove.8_pregen
index b34f2a042..834a51678 100644
--- a/man/pvremove.8_pregen
+++ b/man/pvremove.8_pregen
@@ -65,6 +65,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -141,6 +143,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvresize.8_pregen b/man/pvresize.8_pregen
index ea309b311..c2f7b6bb4 100644
--- a/man/pvresize.8_pregen
+++ b/man/pvresize.8_pregen
@@ -60,6 +60,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -130,6 +132,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvs.8_pregen b/man/pvs.8_pregen
index 08b5600f5..11313f50c 100644
--- a/man/pvs.8_pregen
+++ b/man/pvs.8_pregen
@@ -108,6 +108,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -231,6 +233,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/pvscan.8_pregen b/man/pvscan.8_pregen
index 8025d6c34..902a3527a 100644
--- a/man/pvscan.8_pregen
+++ b/man/pvscan.8_pregen
@@ -158,6 +158,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -260,6 +262,13 @@ The major number of a device.
The minor number of a device.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgcfgbackup.8_pregen b/man/vgcfgbackup.8_pregen
index ce7102595..ae9b476f5 100644
--- a/man/vgcfgbackup.8_pregen
+++ b/man/vgcfgbackup.8_pregen
@@ -85,6 +85,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -174,6 +176,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgcfgrestore.8_pregen b/man/vgcfgrestore.8_pregen
index 841626728..2c4d18e30 100644
--- a/man/vgcfgrestore.8_pregen
+++ b/man/vgcfgrestore.8_pregen
@@ -39,6 +39,8 @@ vgcfgrestore \(em Restore volume group configuration
\fB--longhelp\fP
.br
\fB-M\fP|\fB--metadatatype\fP \fBlvm2\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -166,6 +168,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -264,6 +268,13 @@ Specifies the type of on-disk metadata to use.
\fBlvm1\fP (or just \fB1\fP) is no longer used.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgchange.8_pregen b/man/vgchange.8_pregen
index 31fc458da..19797daa4 100644
--- a/man/vgchange.8_pregen
+++ b/man/vgchange.8_pregen
@@ -70,6 +70,8 @@ vgchange \(em Change volume group attributes
\fB--metadataprofile\fP \fIString\fP
.br
\fB--monitor\fP \fBy\fP|\fBn\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -423,6 +425,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -655,6 +659,13 @@ automated maintenance for the LV in reponse to specific events.
See \fBdmeventd\fP(8) for more information.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgck.8_pregen b/man/vgck.8_pregen
index ae312424a..5e575f6f7 100644
--- a/man/vgck.8_pregen
+++ b/man/vgck.8_pregen
@@ -76,6 +76,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -146,6 +148,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgconvert.8_pregen b/man/vgconvert.8_pregen
index d18e7af08..baf3b5bdd 100644
--- a/man/vgconvert.8_pregen
+++ b/man/vgconvert.8_pregen
@@ -71,6 +71,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -183,6 +185,13 @@ Specifies the type of on-disk metadata to use.
\fBlvm1\fP (or just \fB1\fP) is no longer used.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgcreate.8_pregen b/man/vgcreate.8_pregen
index 7e357a548..b0d9a04de 100644
--- a/man/vgcreate.8_pregen
+++ b/man/vgcreate.8_pregen
@@ -111,6 +111,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -290,6 +292,13 @@ Specifies the type of on-disk metadata to use.
\fBlvm1\fP (or just \fB1\fP) is no longer used.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgdisplay.8_pregen b/man/vgdisplay.8_pregen
index 467f74506..50fb24bd6 100644
--- a/man/vgdisplay.8_pregen
+++ b/man/vgdisplay.8_pregen
@@ -109,6 +109,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -237,6 +239,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgexport.8_pregen b/man/vgexport.8_pregen
index 0e6e0b164..429483894 100644
--- a/man/vgexport.8_pregen
+++ b/man/vgexport.8_pregen
@@ -97,6 +97,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -171,6 +173,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgextend.8_pregen b/man/vgextend.8_pregen
index e5e01c4c5..6a7ab2bee 100644
--- a/man/vgextend.8_pregen
+++ b/man/vgextend.8_pregen
@@ -89,6 +89,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -214,6 +216,13 @@ Specifies the type of on-disk metadata to use.
\fBlvm1\fP (or just \fB1\fP) is no longer used.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgimport.8_pregen b/man/vgimport.8_pregen
index c0b815b65..70f8b76f6 100644
--- a/man/vgimport.8_pregen
+++ b/man/vgimport.8_pregen
@@ -85,6 +85,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -166,6 +168,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgimportclone.8_pregen b/man/vgimportclone.8_pregen
index ee9bbe66c..9bc8a4654 100644
--- a/man/vgimportclone.8_pregen
+++ b/man/vgimportclone.8_pregen
@@ -66,6 +66,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -156,6 +158,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgimportdevices.8_pregen b/man/vgimportdevices.8_pregen
index 364ef52a4..30bbb906e 100644
--- a/man/vgimportdevices.8_pregen
+++ b/man/vgimportdevices.8_pregen
@@ -90,6 +90,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -170,6 +172,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgmerge.8_pregen b/man/vgmerge.8_pregen
index e2292182a..f98ad7403 100644
--- a/man/vgmerge.8_pregen
+++ b/man/vgmerge.8_pregen
@@ -63,6 +63,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -144,6 +146,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgmknodes.8_pregen b/man/vgmknodes.8_pregen
index 10f235949..7432befb0 100644
--- a/man/vgmknodes.8_pregen
+++ b/man/vgmknodes.8_pregen
@@ -70,6 +70,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -146,6 +148,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgreduce.8_pregen b/man/vgreduce.8_pregen
index 1509e4bd0..1b897a6d3 100644
--- a/man/vgreduce.8_pregen
+++ b/man/vgreduce.8_pregen
@@ -37,6 +37,8 @@ vgreduce \(em Remove physical volume(s) from a volume group
\fB--longhelp\fP
.br
\fB--mirrorsonly\fP
+.br
+ \fB--nohints\fP
.br
\fB--nolocking\fP
.br
@@ -146,6 +148,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -238,6 +242,13 @@ Display long help text.
Only remove missing PVs from mirror LVs.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgremove.8_pregen b/man/vgremove.8_pregen
index cf5c48ce4..0b6ebb522 100644
--- a/man/vgremove.8_pregen
+++ b/man/vgremove.8_pregen
@@ -71,6 +71,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -147,6 +149,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgrename.8_pregen b/man/vgrename.8_pregen
index 24ff24744..c600a3fcf 100644
--- a/man/vgrename.8_pregen
+++ b/man/vgrename.8_pregen
@@ -89,6 +89,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -171,6 +173,13 @@ See \fBlvmlockd\fP(8) for more information.
Display long help text.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgs.8_pregen b/man/vgs.8_pregen
index ffb4ddc41..63d1c7dc3 100644
--- a/man/vgs.8_pregen
+++ b/man/vgs.8_pregen
@@ -106,6 +106,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -228,6 +230,13 @@ Suppress the headings line that is normally the first line of output.
Useful if grepping the output.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgscan.8_pregen b/man/vgscan.8_pregen
index 959e16190..bd554fa82 100644
--- a/man/vgscan.8_pregen
+++ b/man/vgscan.8_pregen
@@ -63,6 +63,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -145,6 +147,13 @@ Also checks the LVM special files in /dev that are needed for active
LVs and creates any missing ones and removes unused ones.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
diff --git a/man/vgsplit.8_pregen b/man/vgsplit.8_pregen
index 8a0ae597e..f45cfcabc 100644
--- a/man/vgsplit.8_pregen
+++ b/man/vgsplit.8_pregen
@@ -106,6 +106,8 @@ Common options for lvm:
.br
[ \fB--longhelp\fP ]
.br
+[ \fB--nohints\fP ]
+.br
[ \fB--nolocking\fP ]
.br
[ \fB--profile\fP \fIString\fP ]
@@ -232,6 +234,13 @@ Specifies the type of on-disk metadata to use.
Move only PVs used by the named LV.
.
.HP
+\fB--nohints\fP
+.br
+Do not use the hints file to locate devices for PVs. A command may read
+more devices to find PVs when hints are not used. The command will still
+perform standard hint file invalidation where appropriate.
+.
+.HP
\fB--nolocking\fP
.br
Disable locking.
2 years, 2 months
main - tests: raise required version for conversion
by Zdenek Kabelac
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4cfa80f02f769f723fa...
Commit: 4cfa80f02f769f723fad37d3e1d8697a106ee603
Parent: b0d40109a67a99bf568c168a31f37955a07d7da4
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Sep 21 21:43:02 2021 +0200
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Tue Sep 21 21:43:02 2021 +0200
tests: raise required version for conversion
Real conversion needs this version driver.
TODO: handle properly older versions.
---
test/shell/vdo-convert.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/shell/vdo-convert.sh b/test/shell/vdo-convert.sh
index f82529a2d..2a2026c2e 100644
--- a/test/shell/vdo-convert.sh
+++ b/test/shell/vdo-convert.sh
@@ -40,6 +40,11 @@ aux prepare_devs 2 10000
aux extend_filter_LVMTEST
+
+
+# Conversion can be made with this version of vdo driver
+aux have_vdo 6 2 5 || skip
+
#
# Check conversion of VDO volume made on some LV
#
2 years, 2 months