1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

fsadm: fix bug in LUKS grow/shrink decision branch

This commit is contained in:
Ondrej Kozina 2017-10-23 15:41:16 +02:00
parent 6df7917581
commit af781897fa

View File

@ -591,7 +591,7 @@ resize_luks() {
VOLUME="$DM_DEV_DIR/mapper/$NAME"
detect_device_size
test "$DEVSIZE" -le "$NEWSIZE" || SHRINK=1
test "$DEVSIZE" -le "$NEWFSIZE" || SHRINK=1
if [ $SHRINK -eq 1 ]; then
# shrink fs on LUKS device first