Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2016 12:31:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 189174] [patch] dd(1): dd conv=sparse bs=64k EINVAL on sparse last block
Message-ID:  <bug-189174-8-xwfBr4uWH5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-189174-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-189174-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189174

Robert Schulze <rs@bytecamp.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rs@bytecamp.net

--- Comment #6 from Robert Schulze <rs@bytecamp.net> ---
This patch breaks sparse file creation entirely.

I'm running 10.3-p6 and creating a sparse image for md-usage with dd is not
possible, md cannot attach it. A sparse file created with truncate works.

I've reverted to r266488 and it works again.
Here is the output on non-reverted 10.3:

# dd if=3D/dev/zero of=3Ddisk bs=3D1M count=3D512 conv=3Dsparse
512+0 records in
512+0 records out
536870912 bytes transferred in 0.255875 secs (2098175593 bytes/sec)
# ls -lsh
0 -rw-r--r--  1 root  wheel     0B Aug 30 14:29 disk

After reverting I got this:

# dd if=3D/dev/zero of=3Ddisk bs=3D1M count=3D512 conv=3Dsparse
512+0 records in
512+0 records out
536870912 bytes transferred in 0.458561 secs (1170773306 bytes/sec)
# ls -lsh
96 -rw-r--r--  1 root  wheel   512M Aug 30 14:27 disk

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-189174-8-xwfBr4uWH5>