[Bug 189174] [patch] dd(1): dd conv=sparse bs=64k EINVAL on sparse last block

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Aug 30 12:31:01 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=189174

Robert Schulze <rs at bytecamp.net> changed:

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

--- Comment #6 from Robert Schulze <rs at 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=/dev/zero of=disk bs=1M count=512 conv=sparse
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=/dev/zero of=disk bs=1M count=512 conv=sparse
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

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


More information about the freebsd-bugs mailing list