From owner-freebsd-bugs@freebsd.org Tue Aug 30 12:31:01 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5BE2BC71F0 for ; Tue, 30 Aug 2016 12:31:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A57635E8 for ; Tue, 30 Aug 2016 12:31:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7UCV0MO073061 for ; Tue, 30 Aug 2016 12:31:01 GMT (envelope-from bugzilla-noreply@freebsd.org) 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 Date: Tue, 30 Aug 2016 12:31:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 9.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rs@bytecamp.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 12:31:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189174 Robert Schulze changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rs@bytecamp.net --- Comment #6 from Robert Schulze --- 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.=