|
|
8d419f |
From c16ff9acad53e741ee121a21bd2ba5dfce1f459e Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
8d419f |
Date: Fri, 25 Feb 2022 15:09:07 +0100
|
|
|
8d419f |
Subject: [PATCH] test: accept both unpadded and padded partition sizes
|
|
|
8d419f |
|
|
|
8d419f |
Since util-linux/util-linux@921c7da55ec78350e4067b3fd6b7de6f299106ee
|
|
|
8d419f |
libfdisk aligns the last partition (on GPT) for optimal I/O. Let's
|
|
|
8d419f |
account for that.
|
|
|
8d419f |
|
|
|
8d419f |
Fixes: #22606
|
|
|
8d419f |
(cherry picked from commit d490188b8f6da658d8086dd53b7db95735e5cca1)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2017035
|
|
|
8d419f |
---
|
|
|
8d419f |
test/units/testsuite-58.sh | 3 ++-
|
|
|
8d419f |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh
|
|
|
8d419f |
index 7aed965fb4..f1b690a71f 100755
|
|
|
8d419f |
--- a/test/units/testsuite-58.sh
|
|
|
8d419f |
+++ b/test/units/testsuite-58.sh
|
|
|
8d419f |
@@ -184,7 +184,8 @@ sfdisk --dump "$LOOP" | tee /tmp/testsuite-58-issue-21817.dump
|
|
|
8d419f |
losetup -d "$LOOP"
|
|
|
8d419f |
|
|
|
8d419f |
grep -qiF "p1 : start= 2048, size= 102400, type=${root_guid}," /tmp/testsuite-58-issue-21817.dump
|
|
|
8d419f |
-grep -qF 'p2 : start= 104448, size= 100319,' /tmp/testsuite-58-issue-21817.dump
|
|
|
8d419f |
+# Accept both unpadded (pre-v2.38 util-linux) and padded (v2.38+ util-linux) sizes
|
|
|
8d419f |
+grep -qE "p2 : start= 104448, size= (100319| 98304)," /tmp/testsuite-58-issue-21817.dump
|
|
|
8d419f |
|
|
|
8d419f |
rm /tmp/testsuite-58-issue-21817.img /tmp/testsuite-58-issue-21817.dump
|
|
|
8d419f |
rm -r /tmp/testsuite-58-issue-21817-defs/
|