1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvresize: fix cryptsetup resize in helper

typo used "cryptresize" as command name

this affects cases where the file system is resized
independently, and then the lvresize command is used
which only needs to resize the crypt device and the LV.
This commit is contained in:
David Teigland 2023-01-03 11:38:33 -06:00
parent aec5e573af
commit 81acde7ffd

View File

@ -224,7 +224,7 @@ fsreduce() {
cryptresize() { cryptresize() {
NEWSIZESECTORS=$(($NEWSIZEBYTES/512)) NEWSIZESECTORS=$(($NEWSIZEBYTES/512))
logmsg "cryptsetup resize ${NEWSIZESECTORS} sectors ${DEVPATH}" logmsg "cryptsetup resize ${NEWSIZESECTORS} sectors ${DEVPATH}"
cryptresize resize --size "$NEWSIZESECTORS" "$DEVPATH" cryptsetup resize --size "$NEWSIZESECTORS" "$DEVPATH"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
logmsg "cryptsetup done" logmsg "cryptsetup done"
else else