summaryrefslogtreecommitdiff
path: root/src/ioblksize.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioblksize.h')
-rw-r--r--src/ioblksize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ioblksize.h b/src/ioblksize.h
index 276d38fe6..55aaeae11 100644
--- a/src/ioblksize.h
+++ b/src/ioblksize.h
@@ -63,7 +63,7 @@
the readahead setting is 128KiB which was read using:
file="."
- device=$(df -P --local "$file" | tail -n1 | cut -d' ' -f1)
+ device=$(df --output=source --local "$file" | tail -n1)
echo $(( $(blockdev --getra $device) * 512 ))
However there isn't a portable way to get the above.