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

Support for passing --yes flag recursively.

This commit is contained in:
Zdenek Kabelac 2010-10-08 13:49:20 +00:00
parent fd86754329
commit 685940c01c
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.75 -
=====================================
Fix support for --yes flag for fsadm.
Do not execute lvresize with --dry-run option for fsadm.
Fix fsadm return error code from user's break action.
Allow CC to be overridden at build time (for 'scan-build make').

View File

@ -51,7 +51,7 @@ XFS_CHECK=xfs_check
# user may override lvm location by setting LVM_BINARY
LVM=${LVM_BINARY-lvm}
YES=
YES=${_FSADM_YES}
DRY=0
VERB=
FORCE=
@ -128,6 +128,8 @@ cleanup() {
if [ "$DO_LVRESIZE" -eq 2 ]; then
# start LVRESIZE with the filesystem modification flag
# and allow recursive call of fsadm
_FSADM_YES=$YES
export _FSADM_YES
unset FSADM_RUNNING
dry exec $LVM lvresize $VERB $FORCE -r -L${NEWSIZE}b $VOLUME_ORIG
fi