From 01143a931345a0115b1443ad2b3b802ea3b95f6d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 8 Oct 2010 15:00:06 +0000 Subject: [PATCH] Fix usage of --yes flag for ReiserFS resize Put 'dry' before resize command - using dry for echo had no use. --- WHATS_NEW | 1 + scripts/fsadm.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index a1c025a39..b080742f3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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. diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index 642d32e71..7449b3343 100644 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -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 -- 2.43.5