diff options
author | David Teigland <teigland@redhat.com> | 2019-08-01 10:06:47 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2019-08-01 10:06:47 -0500 |
commit | 0404539edb25e4a9d3456bb3e6b402aa2767af6b (patch) | |
tree | e46b137a78e7071cbd9372c39dbcdd4f35fc16aa /lib/commands | |
parent | c1996c78c18ee0b555e4f7eba16858d8dd4fa0a1 (diff) | |
download | lvm2-0404539edb25e4a9d3456bb3e6b402aa2767af6b.tar.gz |
vgcreate/vgextend: restrict PVs with mixed block sizes
Avoid having PVs with different logical block sizes in the same VG.
This prevents LVs from having mixed block sizes, which can produce
file system errors.
The new config setting devices/allow_mixed_block_sizes (default 0)
can be changed to 1 to return to the unrestricted mode.
Diffstat (limited to 'lib/commands')
-rw-r--r-- | lib/commands/toolcontext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h index 488752c8f..655d9f297 100644 --- a/lib/commands/toolcontext.h +++ b/lib/commands/toolcontext.h @@ -153,6 +153,7 @@ struct cmd_context { unsigned include_shared_vgs:1; /* report/display cmds can reveal lockd VGs */ unsigned include_active_foreign_vgs:1; /* cmd should process foreign VGs with active LVs */ unsigned vg_read_print_access_error:1; /* print access errors from vg_read */ + unsigned allow_mixed_block_sizes:1; unsigned force_access_clustered:1; unsigned lockd_gl_disable:1; unsigned lockd_vg_disable:1; |