GNU bug report logs - #20570
Test dd/sparse.sh fail with btrfs

Previous Next

Package: coreutils;

Reported by: Sébastien Luttringer <seblu <at> seblu.net>

Date: Thu, 14 May 2015 05:26:02 UTC

Severity: normal

Merged with 20574

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Sébastien Luttringer <seblu <at> seblu.net>,  20570 <at> debbugs.gnu.org
Subject: bug#20570: Test dd/sparse.sh fail with btrfs
Date: Thu, 14 May 2015 11:48:30 +0100
[Message part 1 (text/plain, inline)]
On 14/05/15 03:53, Sébastien Luttringer wrote:
> Hello,
> 
> I experience one test suite failure when I tried to rebuild the
> coreutils v8.23 package. My system is an archlinux host with a btrfs
> filesystem.
> 
> The test doesn't fail when I run it in a tmpfs. I'm pretty sure it used
> to works over btrfs in july 2014[1] when I built the previous package
> for archlinux.
> 
> The failing section is the following:
> 
>   # Ensure NUL blocks smaller than the block size are not made sparse.
>   # Here, with a 2MiB block size, dd's conv=sparse must *not*
> introduce a hole. 
>   dd if=file.in of=file.out bs=2M conv=sparse
>   test 2500 -lt $(kb_alloc file.out) || fail=1
> 
> You can see the full shell output here: http://pastebin.com/XADb1BKj
> 
> Regards,
> 
> [1] https://www.archlinux.org/packages/core/x86_64/coreutils/

It seems the allocation is async.
I also see this intermittently with BTRFS on 4.0.0-0.rc5.git4.1.fc22.x86_64
I've been unable to reproduce with the attached
which syncs the file before checking the allocation.

thanks!
Pádraig.
[dd-sparse-btrfs.patch (text/x-patch, attachment)]

This bug report was last modified 10 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.