Blame 0036-TEST-15-BTRFSRAID-add-one-more-partition-to-the-btrf.patch

Harald Hoyer 14f838
From 5a81678219a2cbf6f39e47f85d2fcb525ac2143c Mon Sep 17 00:00:00 2001
Harald Hoyer a633d0
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer a633d0
Date: Wed, 25 Apr 2012 14:23:12 +0200
Harald Hoyer a633d0
Subject: [PATCH] TEST-15-BTRFSRAID: add one more partition to the btrfs
Harald Hoyer a633d0
 raid10
Harald Hoyer a633d0
Harald Hoyer a633d0
---
Harald Hoyer a633d0
 test/TEST-15-BTRFSRAID/create-root.sh |   12 +++++++++---
Harald Hoyer a633d0
 test/TEST-15-BTRFSRAID/test.sh        |    2 +-
Harald Hoyer 0c26bf
 2 Dateien geändert, 10 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-)
Harald Hoyer a633d0
Harald Hoyer a633d0
diff --git a/test/TEST-15-BTRFSRAID/create-root.sh b/test/TEST-15-BTRFSRAID/create-root.sh
Harald Hoyer a633d0
index 60dd319..3debf33 100755
Harald Hoyer a633d0
--- a/test/TEST-15-BTRFSRAID/create-root.sh
Harald Hoyer a633d0
+++ b/test/TEST-15-BTRFSRAID/create-root.sh
Harald Hoyer a633d0
@@ -5,17 +5,23 @@ for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do
Harald Hoyer a633d0
 done
Harald Hoyer a633d0
 udevadm control --reload-rules
Harald Hoyer a633d0
 # save a partition at the beginning for future flagging purposes
Harald Hoyer a633d0
-sfdisk -C 524288 -H 2 -S 32 -L /dev/sda <
Harald Hoyer a633d0
+sfdisk -C 655600 -H 2 -S 32 -L /dev/sda <
Harald Hoyer a633d0
 ,16
Harald Hoyer a633d0
+,,E
Harald Hoyer a633d0
+;
Harald Hoyer a633d0
+;
Harald Hoyer a633d0
+,10240
Harald Hoyer a633d0
 ,10240
Harald Hoyer a633d0
 ,10240
Harald Hoyer a633d0
 ,10240
Harald Hoyer a633d0
 EOF
Harald Hoyer a633d0
-mkfs.btrfs -mraid10 -L root /dev/sda2 /dev/sda3 /dev/sda4
Harald Hoyer a633d0
+mkfs.btrfs -draid10 -mraid10 -L root /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8
Harald Hoyer a633d0
+udevadm settle
Harald Hoyer a633d0
 btrfs device scan
Harald Hoyer a633d0
+udevadm settle
Harald Hoyer a633d0
 set -e
Harald Hoyer a633d0
 mkdir -p /sysroot 
Harald Hoyer a633d0
-mount /dev/sda4 /sysroot 
Harald Hoyer a633d0
+mount -t btrfs /dev/sda8 /sysroot 
Harald Hoyer a633d0
 cp -a -t /sysroot /source/* 
Harald Hoyer a633d0
 umount /sysroot 
Harald Hoyer a633d0
 echo "dracut-root-block-created" >/dev/sda1
Harald Hoyer a633d0
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer a633d0
index f64b2b2..b65e77a 100755
Harald Hoyer a633d0
--- a/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer a633d0
+++ b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer a633d0
@@ -20,7 +20,7 @@ test_setup() {
Harald Hoyer a633d0
     # Create the blank file to use as a root filesystem
Harald Hoyer a633d0
     DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
Harald Hoyer a633d0
     rm -f $DISKIMAGE
Harald Hoyer a633d0
-    dd if=/dev/null of=$DISKIMAGE bs=1M seek=1024
Harald Hoyer a633d0
+    dd if=/dev/null of=$DISKIMAGE bs=2M seek=1024
Harald Hoyer a633d0
 
Harald Hoyer a633d0
     kernel=$KVERSION
Harald Hoyer a633d0
     # Create what will eventually be our root filesystem onto an overlay