Whamcloud - gitweb
tests: try using truncate command before falling back to using dd
authorTheodore Ts'o <tytso@mit.edu>
Thu, 29 Jul 2021 03:56:08 +0000 (23:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 29 Jul 2021 03:56:08 +0000 (23:56 -0400)
commit4d988e1bba91d6a69d4c34c709084e0e39cb6b2c
tree575133c66457e02c9f3d222867b6e732c3ad3ffd
parent9aba05286c492927b81844193f941386f71ba829
tests: try using truncate command before falling back to using dd

On the GNU Hurd, dd seems to be buggy and hangs if seeking beyond 4G.
Fortunately the GNU Hurd does have the truncate command, which does
work correctly.  So try using the truncate command first, and fall
back to using dd only if the truncate command doesn't work.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/scripts/resize_test