- Fix t1700 probe patch -- remove loop before making new fs

This commit is contained in:
Brian C. Lane 2014-04-18 08:41:56 -07:00
parent 42ecfc7b6b
commit 30cb53c629
2 changed files with 20 additions and 8 deletions

View File

@ -1,7 +1,7 @@
From 01d4a9431ddecb1fb4ff276aa33e6e4ac3418f1d Mon Sep 17 00:00:00 2001 From f988537d99ae18e9307f99821de8f71953ad8d4f Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" <bcl@redhat.com> From: "Brian C. Lane" <bcl@redhat.com>
Date: Thu, 17 Apr 2014 12:14:48 -0700 Date: Thu, 17 Apr 2014 12:14:48 -0700
Subject: [PATCH 99/99] tests: Add ntfs vfat hfsplus to t1700 probe test Subject: [PATCH] tests: Add ntfs vfat hfsplus to t1700 probe test
Add some new filesystems to test. Adjust how mkfs.* tests, since some of Add some new filesystems to test. Adjust how mkfs.* tests, since some of
them don't support -V, and add fsname so that the printed filesystem them don't support -V, and add fsname so that the printed filesystem
@ -9,14 +9,14 @@ name doesn't have to match the type.
* tests/t1700-probe-fs.sh: Add new filesystems to test * tests/t1700-probe-fs.sh: Add new filesystems to test
--- ---
tests/t1700-probe-fs.sh | 16 +++++++++++----- tests/t1700-probe-fs.sh | 19 ++++++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-) 1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh diff --git a/tests/t1700-probe-fs.sh b/tests/t1700-probe-fs.sh
index bf6ad9c..d53cc7e 100755 index bf6ad9c..695f9ef 100755
--- a/tests/t1700-probe-fs.sh --- a/tests/t1700-probe-fs.sh
+++ b/tests/t1700-probe-fs.sh +++ b/tests/t1700-probe-fs.sh
@@ -23,14 +23,20 @@ dev=loop-file @@ -23,28 +23,37 @@ dev=loop-file
ss=$sector_size_ ss=$sector_size_
n_sectors=$((257*1024)) n_sectors=$((257*1024))
@ -34,14 +34,16 @@ index bf6ad9c..d53cc7e 100755
+ ext*) force=-F;; + ext*) force=-F;;
xfs) force=-f;; xfs) force=-f;;
- *) force=;; esac - *) force=;; esac
+ nilfs2) force=-f;;
+ ntfs) force=-F;; + ntfs) force=-F;;
+ vfat) fsname=fat16;; + vfat) fsname=fat16;;
+ hfsplus) fsname=hfs+;; + hfsplus) fsname=hfs+;;
+ esac + esac
# create an $type file system # create an $type file system
+ [ -e $dev ] && rm -f $dev
dd if=/dev/null of=$dev bs=$ss seek=$n_sectors >/dev/null || fail=1 dd if=/dev/null of=$dev bs=$ss seek=$n_sectors >/dev/null || fail=1
@@ -38,7 +44,7 @@ for type in ext2 ext3 ext4 btrfs xfs nilfs2; do mkfs.$type $force $dev || { warn_ $ME: mkfs.$type failed; fail=1; continue; }
# probe the $type file system # probe the $type file system
parted -m -s $dev u s print >out 2>&1 || fail=1 parted -m -s $dev u s print >out 2>&1 || fail=1
@ -50,6 +52,13 @@ index bf6ad9c..d53cc7e 100755
done done
# Some features should indicate ext4 by themselves.
for feature in uninit_bg flex_bg; do
# create an ext3 file system
+ [ -e $dev ] && rm -f $dev
dd if=/dev/null of=$dev bs=1024 seek=4096 >/dev/null || fail=1
mkfs.ext3 -F $dev >/dev/null || skip_ "mkfs.ext3 failed"
-- --
1.9.0 1.9.0

View File

@ -4,7 +4,7 @@
Summary: The GNU disk partition manipulation program Summary: The GNU disk partition manipulation program
Name: parted Name: parted
Version: 3.1 Version: 3.1
Release: 20%{?dist} Release: 21%{?dist}
License: GPLv3+ License: GPLv3+
Group: Applications/System Group: Applications/System
URL: http://www.gnu.org/software/parted URL: http://www.gnu.org/software/parted
@ -261,6 +261,9 @@ fi
%changelog %changelog
* Fri Apr 18 2014 Brian C. Lane <bcl@redhat.com> 3.1-21
- Fix t1700 probe patch -- remove loop before making new fs
* Thu Apr 17 2014 Brian C. Lane <bcl@redhat.com> 3.1-20 * Thu Apr 17 2014 Brian C. Lane <bcl@redhat.com> 3.1-20
- Use force for xfs in t1700 and a larger file - Use force for xfs in t1700 and a larger file
- Make t4100 xfs filesystem larger and sparse - Make t4100 xfs filesystem larger and sparse