78da9a698d
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/lvm2.git#d2cc5b0434310d77f9ef21e3da5220677753e81e
25 lines
933 B
Diff
25 lines
933 B
Diff
tools/pvck.c | 10 +++++++---
|
|
1 file changed, 7 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tools/pvck.c b/tools/pvck.c
|
|
index c36e182..88350de 100644
|
|
--- a/tools/pvck.c
|
|
+++ b/tools/pvck.c
|
|
@@ -1140,9 +1140,13 @@ static int _dump_label_and_pv_header(struct cmd_context *cmd, uint64_t labelsect
|
|
*mda1_offset = xlate64(dlocn->offset);
|
|
*mda1_size = xlate64(dlocn->size);
|
|
|
|
- if (*mda1_offset != 4096) {
|
|
- log_print("CHECK: pv_header.disk_locn[%d].offset expected 4096 # for first mda", di);
|
|
- bad++;
|
|
+ /*
|
|
+ * mda1 offset is page size from machine that created it,
|
|
+ * warn if it's not one of the expected page sizes.
|
|
+ */
|
|
+ if ((*mda1_offset != 4096) && (*mda1_offset != 8192) && (*mda1_offset != 65536)) {
|
|
+ log_print("WARNING: pv_header.disk_locn[%d].offset %llu is unexpected # for first mda",
|
|
+ di, (unsigned long long)*mda1_offset);
|
|
}
|
|
} else {
|
|
*mda2_offset = xlate64(dlocn->offset);
|