From: Matthias Andree Date: Thu, 26 Jun 2025 20:28:41 +0000 (+0200) Subject: f_detect_junk: avoid dd option oflag=append X-Git-Tag: v1.47.3-rc3~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d0bc1c1139195f367ef95d3bfc96c762b82f863;p=thirdparty%2Fe2fsprogs.git f_detect_junk: avoid dd option oflag=append because it is unavailable on, for instance, FreeBSD's dd. Instead use dd to just generate 16 MB of zeroes and use the shell append redirection. Signed-off-by: Matthias Andree Link: https://lore.kernel.org/r/20250626202919.321842-2-matthias.andree@gmx.de Signed-off-by: Theodore Ts'o --- diff --git a/tests/f_detect_junk/script b/tests/f_detect_junk/script index 2577842f5..a49cb295d 100644 --- a/tests/f_detect_junk/script +++ b/tests/f_detect_junk/script @@ -9,7 +9,7 @@ FSCK_OPT=-fn IMAGE=$test_dir/image.bz2 bzip2 -d < $IMAGE > $TMPFILE -$DD if=/dev/zero of=$TMPFILE conv=notrunc oflag=append bs=1024k count=16 > /dev/null 2>&1 +$DD if=/dev/zero conv=notrunc bs=1024k count=16 2>/dev/null >>$TMPFILE # Run fsck to fix things? if [ -x $DEBUGFS_EXE ]; then