]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fadvise: (test) test with 64k blocks
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 21 May 2023 19:45:10 +0000 (21:45 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 5 Dec 2023 21:55:43 +0000 (22:55 +0100)
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
tests/ts/fadvise/drop

index 25f23e050a83c8cf42d7124e4c1722b990956472..e7bb26b6e2047757a3dc7b56e33740a2a90869f8 100644 (file)
@@ -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
 
index 6c4298e8721a82d34a98be5c92cf24c313e7d76a..45dcb9110beabc891fd3506c855f38ce8d2a904f 100755 (executable)
@@ -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")"