summaryrefslogtreecommitdiffstats
path: root/debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 19:10:50 +0000
commit63c1e58910cbc3c5cc4b4bdf966f68dd292980a1 (patch)
treeba5913f9f169d5c0391237afbab9c94955ce18ab /debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch
parentAdding upstream version 2.39.3. (diff)
downloadutil-linux-1e53a9f1bb160b4e7b60eea9ce0dbb910ac0f26f.tar.xz
util-linux-1e53a9f1bb160b4e7b60eea9ce0dbb910ac0f26f.zip
Adding debian version 2.39.3-6.debian/2.39.3-6
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch')
-rw-r--r--debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch b/debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch
new file mode 100644
index 0000000..772784c
--- /dev/null
+++ b/debian/patches/upstream/fadvise-test-test-with-64k-blocks.patch
@@ -0,0 +1,70 @@
+From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <thomas@t-8ch.de>
+Date: Sun, 21 May 2023 21:45:10 +0200
+Subject: fadvise: (test) test with 64k blocks
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+This will allow the tests to also pass on systems with 64k pagesizes.
+
+Closes #2249
+Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
+---
+ tests/expected/fadvise/drop | 26 +++++++++++++-------------
+ tests/ts/fadvise/drop | 2 +-
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/tests/expected/fadvise/drop b/tests/expected/fadvise/drop
+index 25f23e0..e7bb26b 100644
+--- a/tests/expected/fadvise/drop
++++ b/tests/expected/fadvise/drop
+@@ -1,23 +1,23 @@
+- RES SIZE FILE
+- 32K 32K ddtest
++ RES SIZE FILE
++ 512K 512K ddtest
+
+ whole file
+ status: 0
+-RES SIZE FILE
+- 0B 32K ddtest
++RES SIZE FILE
++ 0B 512K ddtest
+
+-offset: 8192
++offset: 131072
+ status: 0
+-RES SIZE FILE
+- 8K 32K ddtest
++ RES SIZE FILE
++ 128K 512K ddtest
+
+-length: 16384
++length: 262144
+ status: 0
+- RES SIZE FILE
+- 16K 32K ddtest
++ RES SIZE FILE
++ 256K 512K ddtest
+
+-offset: 8192, length: 16384 fd: 42
++offset: 131072, length: 262144 fd: 42
+ status: 0
+- RES SIZE FILE
+- 16K 32K ddtest
++ RES SIZE FILE
++ 256K 512K ddtest
+
+diff --git a/tests/ts/fadvise/drop b/tests/ts/fadvise/drop
+index 6c4298e..45dcb91 100755
+--- a/tests/ts/fadvise/drop
++++ b/tests/ts/fadvise/drop
+@@ -16,7 +16,7 @@ ts_check_prog "sleep"
+ ts_cd "$TS_OUTDIR"
+
+ FILE="ddtest"
+-BS=4096
++BS=65536
+ COUNT=8
+
+ FILE_FS="$("$TS_CMD_FINDMNT" -nr -o FSTYPE -T "$PWD")"