|
Harald Hoyer |
ee76a0 |
From b8a9dc2d3fdd7596d4d968f761f56f6ced06e9db Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
ee76a0 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
ee76a0 |
Date: Fri, 2 Mar 2012 13:58:48 +0100
|
|
Harald Hoyer |
ee76a0 |
Subject: [PATCH] TEST-20-NFS: use ext3 on server and fsck after kill
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
---
|
|
Harald Hoyer |
ee76a0 |
test/TEST-20-NFS/test.sh | 11 ++++++-----
|
|
Harald Hoyer |
ee76a0 |
1 files changed, 6 insertions(+), 5 deletions(-)
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
|
|
Harald Hoyer |
ee76a0 |
index c6a9670..fcd424f 100755
|
|
Harald Hoyer |
ee76a0 |
--- a/test/TEST-20-NFS/test.sh
|
|
Harald Hoyer |
ee76a0 |
+++ b/test/TEST-20-NFS/test.sh
|
|
Harald Hoyer |
ee76a0 |
@@ -12,8 +12,9 @@ run_server() {
|
|
Harald Hoyer |
ee76a0 |
# Start server first
|
|
Harald Hoyer |
ee76a0 |
echo "NFS TEST SETUP: Starting DHCP/NFS server"
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
+ fsck $TESTDIR/server.ext3 || return 1
|
|
Harald Hoyer |
ee76a0 |
$testdir/run-qemu \
|
|
Harald Hoyer |
ee76a0 |
- -hda $TESTDIR/server.ext2 -m 256M -nographic \
|
|
Harald Hoyer |
ee76a0 |
+ -hda $TESTDIR/server.ext3 -m 256M -nographic \
|
|
Harald Hoyer |
ee76a0 |
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
|
|
Harald Hoyer |
ee76a0 |
-net socket,listen=127.0.0.1:12320 \
|
|
Harald Hoyer |
ee76a0 |
-serial $SERIAL \
|
|
Harald Hoyer |
ee76a0 |
@@ -203,10 +204,10 @@ test_run() {
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
test_setup() {
|
|
Harald Hoyer |
ee76a0 |
# Make server root
|
|
Harald Hoyer |
ee76a0 |
- dd if=/dev/null of=$TESTDIR/server.ext2 bs=1M seek=60
|
|
Harald Hoyer |
ee76a0 |
- mke2fs -F $TESTDIR/server.ext2
|
|
Harald Hoyer |
ee76a0 |
+ dd if=/dev/null of=$TESTDIR/server.ext3 bs=1M seek=60
|
|
Harald Hoyer |
ee76a0 |
+ mke2fs -j -F $TESTDIR/server.ext3
|
|
Harald Hoyer |
ee76a0 |
mkdir $TESTDIR/mnt
|
|
Harald Hoyer |
ee76a0 |
- sudo mount -o loop $TESTDIR/server.ext2 $TESTDIR/mnt
|
|
Harald Hoyer |
ee76a0 |
+ sudo mount -o loop $TESTDIR/server.ext3 $TESTDIR/mnt
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
kernel=$KVERSION
|
|
Harald Hoyer |
ee76a0 |
(
|
|
Harald Hoyer |
ee76a0 |
@@ -307,7 +308,7 @@ test_setup() {
|
|
Harald Hoyer |
ee76a0 |
# Make server's dracut image
|
|
Harald Hoyer |
ee76a0 |
$basedir/dracut.sh -l -i $TESTDIR/overlay / \
|
|
Harald Hoyer |
ee76a0 |
-m "dash udev-rules base rootfs-block debug kernel-modules" \
|
|
Harald Hoyer |
ee76a0 |
- -d "piix ide-gd_mod ata_piix ext2 sd_mod e1000" \
|
|
Harald Hoyer |
ee76a0 |
+ -d "piix ide-gd_mod ata_piix ext3 sd_mod e1000" \
|
|
Harald Hoyer |
ee76a0 |
-f $TESTDIR/initramfs.server $KVERSION || return 1
|
|
Harald Hoyer |
ee76a0 |
|
|
Harald Hoyer |
ee76a0 |
# Make client's dracut image
|