All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/test t-fsadm.sh
Date: 19 Sep 2011 13:52:22 -0000	[thread overview]
Message-ID: <20110919135222.31358.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2011-09-19 13:52:22

Modified files:
	test           : t-fsadm.sh 

Log message:
	Enable  t-fsadm test
	
	Now all commands are executed from preffered directory.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-fsadm.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7

--- LVM2/test/t-fsadm.sh	2011/01/31 22:05:30	1.6
+++ LVM2/test/t-fsadm.sh	2011/09/19 13:52:22	1.7
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2008-2010 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2008-2011 Red Hat, Inc. All rights reserved.
 #
 # This copyrighted material is made available to anyone wishing to use,
 # modify, copy, or redistribute it subject to the terms and conditions
@@ -10,7 +10,6 @@
 # Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 test_description='Exercise fsadm filesystem resize'
-exit 200
 
 . lib/test
 
@@ -32,6 +31,8 @@
 vg_lv="$vg/$lv1"
 dev_vg_lv="$DM_DEV_DIR/$vg_lv"
 mount_dir="$TESTDIR/mnt"
+# for recursive call
+export LVM_BINARY=$(which lvm)
 
 test ! -d $mount_dir && mkdir $mount_dir
 
@@ -75,13 +76,13 @@
 
 	fsadm --lvresize resize $vg_lv 30M
 	# Fails - not enough space for 4M fs
-	not fsadm --lvresize resize $dev_vg_lv 4M
+	not fsadm -y --lvresize resize $dev_vg_lv 4M
 	lvresize -L+10M -r $vg_lv
 	lvreduce -L10M -r $vg_lv
 
 	fscheck_ext3
 	mount $dev_vg_lv $mount_dir
-	not fsadm --lvresize resize $vg_lv 9M
+	not fsadm -y --lvresize resize $vg_lv 4M
 	lvresize -L+20M -r -n $vg_lv
 	umount $mount_dir
 	fscheck_ext3
@@ -121,3 +122,5 @@
 
 	lvresize -f -L20M $vg_lv
 fi
+
+vgremove -ff $vg



             reply	other threads:[~2011-09-19 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 13:52 zkabelac [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-19 19:37 LVM2/test t-fsadm.sh zkabelac
2010-10-13  9:44 zkabelac
2009-01-15 17:14 wysochanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110919135222.31358.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.