There was still an obsolete use of "head -[1-9]" in tests.
The following patch replaces it.
From 8246020de1c8bbf24db2cc98a0df096f2e799452 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <[email protected]>
Date: Tue, 21 Jun 2011 10:10:39 +0200
Subject: [PATCH] tests: cp/sparse-fiemap: use "seq 99q" in place of
"head -99"
* tests/cp/sparse-fiemap: Use "seq 99q" in place of "head -99".
The latter is officially obsolete but more portable than "head -n99".
---
tests/cp/sparse-fiemap | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/cp/sparse-fiemap b/tests/cp/sparse-fiemap
index 3d34077..229ad78 100755
--- a/tests/cp/sparse-fiemap
+++ b/tests/cp/sparse-fiemap
@@ -106,7 +106,7 @@ for i in $(seq 1 2 21); do
|| {
warn_ ignoring filefrag-reported extent map differences
# Show the differing extent maps.
- head -99 ff1 ff2
+ sed 99q ff1 ff2
}
fi
test $fail = 1 && break 2
--
1.7.3.4
Have a nice day,
Berny