From owner-freebsd-fs@freebsd.org Thu Mar 25 10:08:07 2021 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 435D15B7838 for ; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5glq1Frpz4qs5 for ; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2B0C45B776E; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) Delivered-To: fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AD755B7837 for ; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F5glq0frWz4qlK for ; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 03C26255B1 for ; Thu, 25 Mar 2021 10:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 12PA86DR077312 for ; Thu, 25 Mar 2021 10:08:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 12PA86Dm077311 for fs@FreeBSD.org; Thu, 25 Mar 2021 10:08:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 254530] ZFS (base) receive fails to receive zvol dataset if dataset already exist Date: Thu, 25 Mar 2021 10:08:07 +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: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: patrik@hildingsson.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-fs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2021 10:08:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254530 --- Comment #2 from Patrik Hildingsson --- (In reply to Alan Somers from comment #1) 1) Please see the below copy/paste from a 13.0-RC3 system where it seems to work just fine. root@testbsd:~ # sysctl -w vfs.zfs.vol.mode=3D2 root@testbsd:~ # zfs create zroot/test root@testbsd:~ # zfs create -o volmode=3Ddev -V 50M zroot/test/disk0 root@testbsd:~ # dd if=3D/dev/random of=3D/dev/zvol/zroot/test/disk0 dd: /dev/zvol/zroot/test/disk0: end of device 102401+0 records in 102400+0 records out 52428800 bytes transferred in 1.016171 secs (51594487 bytes/sec) root@testbsd:~ # zfs snapshot zroot/test/disk0@test-now_ok root@testbsd:~ # dd if=3D/dev/random of=3D/dev/zvol/zroot/test/disk0 dd: /dev/zvol/zroot/test/disk0: end of device 102401+0 records in 102400+0 records out 52428800 bytes transferred in 0.833823 secs (62877584 bytes/sec) root@testbsd:~ # zfs snapshot zroot/test/disk0@test-now_ok-2 root@testbsd:~ # dd if=3D/dev/random of=3D/dev/zvol/zroot/test/disk0 dd: /dev/zvol/zroot/test/disk0: end of device 102401+0 records in 102400+0 records out 52428800 bytes transferred in 0.444901 secs (117843859 bytes/sec) root@testbsd:~ # zfs create -V 52428800 -o 'reservation=3Dnone' -o 'volblocksize=3D8192' -o 'checksum=3Don' -o 'compression=3Dlz4' -o 'readonl= y=3Doff' -o 'copies=3D1' -o 'logbias=3Dthroughput' -o 'dedup=3Doff' -o 'sync=3Dstandard= ' -o 'volmode=3Ddev' -o 'snapshot_limit=3Dnone' -o 'redundant_metadata=3Dmost' zroot/test/disk1 root@testbsd:~ # zfs send zroot/test/disk0@test-now_ok | zfs receive -F zroot/test/disk1 root@testbsd:~ # uname -K 1300139 root@testbsd:~ # uname -U 1300139 2) No, I did not try 12-STABLE. I have only tried 12.2-RELEASE-p4. I have reproduced the error on two different installations of 12.2-RELEASE-p4. 3) The paste indeed looks suspicious. I forgot to trim away the prepending "root@lrrr:~ ", other than that it is correct. I did not leave out a traili= ng forward slash. It isn't supposed to be there. ZFS incorrectly prompts that there is a trailing forward slash. --=20 You are receiving this mail because: You are the assignee for the bug.=