[Debian-ha-commits] [ocfs2-tools] 04/04: debian/tests: additional tunefs tests

Valentin Vidic vvidic-guest at moszumanska.debian.org
Sun Jul 17 09:08:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository ocfs2-tools.

commit 4d27ea2817a69bbb62912e8b77cddb3d88cb81e6
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Sun Jul 17 11:07:05 2016 +0200

    debian/tests: additional tunefs tests
---
 debian/tests/o2cb | 7 ++++++-
 debian/tests/pcmk | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/debian/tests/o2cb b/debian/tests/o2cb
index d979c38..3dd64f2 100644
--- a/debian/tests/o2cb
+++ b/debian/tests/o2cb
@@ -69,7 +69,7 @@ echo "=== o2cluster ==="
 o2cluster -o $LOOP
 
 echo "=== tunefs ==="
-tunefs.ocfs2 -L disk $LOOP
+tunefs.ocfs2 -L disk -N 3 -Q 'Label = %V\nNumSlots = %N\n' $LOOP
 
 echo "=== debugfs ==="
 debugfs.ocfs2 -R stats $LOOP
@@ -77,6 +77,11 @@ debugfs.ocfs2 -R stats $LOOP
 echo "=== o2info ==="
 o2info --volinfo $LOOP
 
+echo "=== grow ==="
+dd if=/dev/zero of=disk bs=1M count=50 seek=200 2>&1
+losetup --set-capacity $LOOP
+tunefs.ocfs2 -S $LOOP
+
 echo "=== mount ==="
 mount $LOOP /mnt
 df /mnt
diff --git a/debian/tests/pcmk b/debian/tests/pcmk
index 221bba9..73e2186 100644
--- a/debian/tests/pcmk
+++ b/debian/tests/pcmk
@@ -44,7 +44,7 @@ echo "=== o2cluster ==="
 o2cluster -o $LOOP
 
 echo "=== tunefs ==="
-tunefs.ocfs2 -L disk $LOOP
+tunefs.ocfs2 -L disk -N 3 -Q 'Label = %V\nNumSlots = %N\n' $LOOP
 
 echo "=== debugfs ==="
 debugfs.ocfs2 -R stats $LOOP
@@ -52,6 +52,11 @@ debugfs.ocfs2 -R stats $LOOP
 echo "=== o2info ==="
 o2info --volinfo $LOOP
 
+echo "=== grow ==="
+dd if=/dev/zero of=disk bs=1M count=50 seek=200 2>&1
+losetup --set-capacity $LOOP
+tunefs.ocfs2 -S $LOOP
+
 echo "=== mount ==="
 mount $LOOP /mnt
 df /mnt

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/ocfs2-tools.git



More information about the Debian-HA-Commits mailing list