git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
let the user explicitly choose ruby and rake programs
[libguestfs.git]
/
resize
/
test-virt-resize.sh
diff --git
a/resize/test-virt-resize.sh
b/resize/test-virt-resize.sh
index
2d5cce9
..
09e5f61
100755
(executable)
--- a/
resize/test-virt-resize.sh
+++ b/
resize/test-virt-resize.sh
@@
-14,7
+14,7
@@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+# Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
export LANG=C
set -e
export LANG=C
set -e
@@
-27,7
+27,7
@@
set -e
../fish/guestfish -N bootrootlv:/dev/VG/LV:ext2:ext4:400M:32M:gpt </dev/null
qemu-img create -f qcow2 test2.img 500M
../fish/guestfish -N bootrootlv:/dev/VG/LV:ext2:ext4:400M:32M:gpt </dev/null
qemu-img create -f qcow2 test2.img 500M
-
./virt-resize -d
--expand /dev/sda2 --lv-expand /dev/VG/LV test1.img test2.img
+
$VG ./virt-resize -d --debug-gc
--expand /dev/sda2 --lv-expand /dev/VG/LV test1.img test2.img
# Test shrinking in a semi-realistic scenario. Although the disk
# image created above contains no data, we will nevertheless use
# Test shrinking in a semi-realistic scenario. Although the disk
# image created above contains no data, we will nevertheless use
@@
-42,6
+42,6
@@
fsck ext4 /dev/VG/LV
EOF
rm -f test2.img; truncate -s 300M test2.img
EOF
rm -f test2.img; truncate -s 300M test2.img
-
./virt-resize -d
--shrink /dev/sda2 test1.img test2.img
+
$VG ./virt-resize -d --debug-gc
--shrink /dev/sda2 test1.img test2.img
rm -f test1.img test2.img
rm -f test1.img test2.img