On Sun, Jul 30, 2023 at 12:14:10PM +0100, Pádraig Brady wrote: > On 30/07/2023 05:09, наб wrote: > > $ truncate -s 5G 5G > > $ cat 5G | /bin/tac | wc -c > > /bin/tac: /tmp/tacOOOwnf: read error: Illegal seek > > 0 > Couldn't repo with 64 bit tac 9.1 Tested on amd64.
> or 32 bit tac latest > > I just get the expected: > > $ cat 5G | git/coreutils/src/tac | wc -c > git/coreutils/src/tac: /tmp/cutmpZRrn27: write error: No space left on device Well, what if you let /tmp grow enough to allocate the 5G (or put it on a compressed filesystem that'll discard the zeroes)? I ran this on a big system so my /tmp has 47G avail, but I can reproduce your lack of reproduction by making it too small: # mount -t tmpfs -o size=1g tmpfs dir $ cat 5G | TMPDIR=dir /bin/tac | wc -c /bin/tac: dir/tacbIeNII: write error: No space left on device 0 Best, наб
signature.asc
Description: PGP signature