summaryrefslogtreecommitdiff
path: root/tools/pvscan.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2023-01-19 11:36:51 -0600
committerDavid Teigland <teigland@redhat.com>2023-01-19 11:52:14 -0600
commit3bb55765286dc8e4f0000957d85a6b8ee2752852 (patch)
treec8491f88de7d9435988ea92ae5b7e02211e1f9cc /tools/pvscan.c
parent92199ad0b98586182a52e2f8cd82c06336e306f1 (diff)
downloadlvm2-3bb55765286dc8e4f0000957d85a6b8ee2752852.tar.gz
lvresize: only resize crypt when fs resize is enabled
There were a couple of cases where lvresize, without --fs resize, was resizing the crypt layer above the LV. Resizing the crypt layer should only be done when fs resizing is enabled (even if the fs is already small enough due to being independently reduced.) Also, check the size of the crypt device to see if it's already been reduced independently, and skip the cryptsetup resize if it's not needed.
Diffstat (limited to 'tools/pvscan.c')
0 files changed, 0 insertions, 0 deletions