[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH v3 06/18] fsadm: Fsck extN before resize only if it is not mounted



Dne 27.9.2011 15:42, Lukas Czerner napsal(a):
Signed-off-by: Lukas Czerner<lczerner redhat com>
---
  scripts/fsadm.sh |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh
index d4901d1..f43d72e 100755
--- a/scripts/fsadm.sh
+++ b/scripts/fsadm.sh
@@ -415,8 +415,9 @@ resize_ext() {
  	decode_size $1 $BLOCKSIZE
  	FSFORCE=$FORCE

+	detect_mounted
  	if [ "$NEWBLOCKCOUNT" -lt "$BLOCKCOUNT" -o "$EXTOFF" -eq 1 ]; then
-		detect_mounted&&  verbose "$RESIZE_EXT needs unmounted filesystem"&&  try_umount
+		[ "$MOUNTED" ]&&  verbose "$RESIZE_EXT needs unmounted filesystem"&&  try_umount
  		REMOUNT=$MOUNTED
  	fi



Patches like these need to go in the front of the patch set so they could be eaily applied upstream.


Zdenek


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]