1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix usage of --yes flag for ReiserFS resize

Put 'dry' before resize command - using dry for echo had no use.
This commit is contained in:
Zdenek Kabelac 2010-10-08 15:00:06 +00:00
parent 55b94bf393
commit 01143a9313
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.75 -
=====================================
Fix usage of --yes flag for ReiserFS resize in fsadm.
Fix detection of mounted filesystems for fsadm when udev is used.
Fix assignment of default value to LVM variable is fsadm.
Fix support for --yes flag for fsadm.

View File

@ -300,7 +300,7 @@ resize_reiser() {
decode_size $1 $BLOCKSIZE
verbose "Resizing \"$VOLUME\" $BLOCKCOUNT -> $NEWBLOCKCOUNT blocks ($NEWSIZE bytes, bs: $NEWBLOCKCOUNT)"
if [ -n "$YES" ]; then
dry echo y | $RESIZE_REISER -s $NEWSIZE "$VOLUME"
echo y | dry $RESIZE_REISER -s $NEWSIZE "$VOLUME"
else
dry $RESIZE_REISER -s $NEWSIZE "$VOLUME"
fi