From 00c01769a8599b6085235ebd588028162c407fa5 Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" <bcl@redhat.com>
Date: Fri, 7 Nov 2014 11:21:32 -0800
Subject: [PATCH] - tests: Change minimum size to 256MiB for t1700-probe-fs

---
 ...-tests-Change-minimum-size-to-256MiB.patch | 27 +++++++++++++++++++
 parted.spec                                   |  6 ++++-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 0007-tests-Change-minimum-size-to-256MiB.patch

diff --git a/0007-tests-Change-minimum-size-to-256MiB.patch b/0007-tests-Change-minimum-size-to-256MiB.patch
new file mode 100644
index 0000000..a5be3fa
--- /dev/null
+++ b/0007-tests-Change-minimum-size-to-256MiB.patch
@@ -0,0 +1,27 @@
+From 17630fc4d523d9c03af87a6e735599e88a032e2a Mon Sep 17 00:00:00 2001
+From: "Brian C. Lane" <bcl@redhat.com>
+Date: Fri, 7 Nov 2014 11:15:55 -0800
+Subject: [PATCH] tests: Change minimum size to 256MiB
+
+btrfs on ppc64 wants 136MiB so expand the minimum temp filesystem size
+for the t1700-probe-fs test.
+---
+ tests/t1700-probe-fs.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh
+index 574d6fe..94ed9ae 100755
+--- a/tests/t1700-probe-fs.sh
++++ b/tests/t1700-probe-fs.sh
+@@ -21,7 +21,7 @@ require_512_byte_sector_size_
+ 
+ dev=loop-file
+ ss=$sector_size_
+-n_sectors=$((257*1024))
++n_sectors=$((512*1024))
+ 
+ for type in ext2 ext3 ext4 btrfs xfs nilfs2 ntfs vfat hfsplus; do
+ 
+-- 
+1.9.3
+
diff --git a/parted.spec b/parted.spec
index bfbbea0..d4e95f8 100644
--- a/parted.spec
+++ b/parted.spec
@@ -4,7 +4,7 @@
 Summary: The GNU disk partition manipulation program
 Name:    parted
 Version: 3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv3+
 Group:   Applications/System
 URL:     http://www.gnu.org/software/parted
@@ -20,6 +20,7 @@ Patch0003: 0003-libparted-also-link-to-UUID_LIBS.patch
 Patch0004: 0004-lib-fs-resize-Prevent-crash-resizing-FAT16-file-syst.patch
 Patch0005: 0005-tests-t3000-resize-fs.sh-Add-FAT16-resizing-test.patch
 Patch0006: 0006-tests-t3000-resize-fs.sh-Add-requirement-on-mkfs.vfa.patch
+Patch0007: 0007-tests-Change-minimum-size-to-256MiB.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: e2fsprogs-devel
@@ -161,6 +162,9 @@ fi
 
 
 %changelog
+* Fri Nov 07 2014 Brian C. Lane <bcl@redhat.com> 3.2-5
+- tests: Change minimum size to 256MiB for t1700-probe-fs
+
 * Fri Oct 31 2014 Brian C. Lane <bcl@redhat.com> 3.2-4
 - Update to current master commit ac74b83 to fix fat16 resize (#1159083)
 - tests: t3000-resize-fs.sh: Add requirement on mkfs.vfat (mike.fleetwood)