From owner-freebsd-fs@freebsd.org Sun Oct 6 05:48:03 2019 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 EB97012BCB5 for ; Sun, 6 Oct 2019 05:48:03 +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 46mCM75qz5z4fcx for ; Sun, 6 Oct 2019 05:48:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C833F12BCB4; Sun, 6 Oct 2019 05:48:03 +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 C7FAA12BCB3 for ; Sun, 6 Oct 2019 05:48:03 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mCM73SHPz4fcv for ; Sun, 6 Oct 2019 05:48:03 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 55AE620A19 for ; Sun, 6 Oct 2019 05:48:03 +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 x965m3Xb081973 for ; Sun, 6 Oct 2019 05:48:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x965m3XG081972 for fs@FreeBSD.org; Sun, 6 Oct 2019 05:48:03 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 241083] zfs: zpool import seems to probe all snapshots Date: Sun, 06 Oct 2019 05:48:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 05:48:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #16 from Martin Birgmeier --- No, not using zfsd. I'll try the patch. Thanks for the support! -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Sun Oct 6 07:18:18 2019 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 2FCB512F0ED for ; Sun, 6 Oct 2019 07:18:18 +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 46mFMF6jmFz3GRD for ; Sun, 6 Oct 2019 07:18:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id E4BD412F0EB; Sun, 6 Oct 2019 07:18:17 +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 E484F12F0EA for ; Sun, 6 Oct 2019 07:18:17 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mFMF5hTqz3GRC for ; Sun, 6 Oct 2019 07:18:17 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A8291219F7 for ; Sun, 6 Oct 2019 07:18:17 +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 x967IHGj047466 for ; Sun, 6 Oct 2019 07:18:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x967IHcB047465 for fs@FreeBSD.org; Sun, 6 Oct 2019 07:18:17 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 241083] zfs: zpool import seems to probe all snapshots Date: Sun, 06 Oct 2019 07:18:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 07:18:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #17 from Martin Birgmeier --- Hmmm... [0]# ll /lib/libzfs.so.3* -r--r--r-- 1 root wheel 310944 Oct 6 09:10 /lib/libzfs.so.3 -r--r--r-- 1 root wheel 310944 Dec 30 2018 /lib/libzfs.so.3.ORIG [0]# sysctl vfs.zfs.vol.recursive vfs.zfs.vol.recursive: 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.04s user 1.26s system 4% cpu 29.296 total [1]# sysctl vfs.zfs.vol.recursive=3D1=20=20=20=20 vfs.zfs.vol.recursive: 0 -> 1 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 1.11s system 28% cpu 4.033 total [1]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]#=20 Note that using 'gstat -a' I saw that after the first import there was agai= n a long time when all zvols would be active (the system has been running since yesterday as a lightly loaded iSCSI server). I waited for this activity to abate and then started the second import. Again I have the impression that some caching mechanism is at work. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Sun Oct 6 14:22:50 2019 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 C4FBE129526 for ; Sun, 6 Oct 2019 14:22:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46mQn64VTyz4Q4L for ; Sun, 6 Oct 2019 14:22:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9A37A129525; Sun, 6 Oct 2019 14:22:50 +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 99FA9129524 for ; Sun, 6 Oct 2019 14:22:50 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mQn62qNsz4Q4K for ; Sun, 6 Oct 2019 14:22:50 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 44D81277AF for ; Sun, 6 Oct 2019 14:22:50 +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 x96EMoKk087506 for ; Sun, 6 Oct 2019 14:22:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x96EMo4C087475 for fs@FreeBSD.org; Sun, 6 Oct 2019 14:22:50 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 241083] zfs: zpool import seems to probe all snapshots Date: Sun, 06 Oct 2019 14:22:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 14:22:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #18 from Alan Somers --- I notice that your old and new libzfs.so.3 files are exactly the same size.= =20 Are you sure that you applied the patch correctly? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Sun Oct 6 16:02:04 2019 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 7B56212E40E for ; Sun, 6 Oct 2019 16:02:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46mSzc2gTTz4X3c for ; Sun, 6 Oct 2019 16:02:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5B9DE12E40D; Sun, 6 Oct 2019 16:02:04 +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 5B5DF12E40C for ; Sun, 6 Oct 2019 16:02:04 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mSzc1k65z4X3b for ; Sun, 6 Oct 2019 16:02:04 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1EAAC98C for ; Sun, 6 Oct 2019 16:02:04 +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 x96G24wl029995 for ; Sun, 6 Oct 2019 16:02:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x96G246x029994 for fs@FreeBSD.org; Sun, 6 Oct 2019 16:02:04 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 241083] zfs: zpool import seems to probe all snapshots Date: Sun, 06 Oct 2019 16:02:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 16:02:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #19 from Martin Birgmeier --- I also noticed the same thing, but they are indeed different. [0]# ll /lib/libzfs.so.3* -r--r--r-- 1 root wheel 310944 Oct 6 09:10 /lib/libzfs.so.3 -r--r--r-- 1 root wheel 310944 Dec 30 2018 /lib/libzfs.so.3.ORIG [0]# diff =3D(strings /lib/libzfs.so.3.ORIG) =3D(strings /lib/libzfs.so.3)= =20=20=20=20=20=20=20=20=20 870a871 > vfs.zfs.vol.recursive 1230a1232 > ZFS::ZVOL 1586a1589 > sysctlbyname 1989d1991 < sysctlbyname 2125,2126d2126 < fff. < ffff. 2128,2130d2127 < l$(I < \$0H < ffffff. 2131a2129,2132 > ffff. > fffff. > fffff. > s0A9 2987a2989 > Lc5=3D [1]#=20 Btw I had to adapt bool in the patch as it does not exist in 12.0 (it is boolean_t and B_TRUE). (The patch initially applied cleanly but could not be compiled.) -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Sun Oct 6 21:00:18 2019 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 3AA86133A6D for ; Sun, 6 Oct 2019 21:00:18 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46mbbk0c97z3KYS for ; Sun, 6 Oct 2019 21:00:18 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0C3B0133A69; Sun, 6 Oct 2019 21:00:18 +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 0C036133A67 for ; Sun, 6 Oct 2019 21:00:18 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mbbj6SjNz3KYK for ; Sun, 6 Oct 2019 21:00:17 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BD51D40F4 for ; Sun, 6 Oct 2019 21:00:17 +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 x96L0HYV044288 for ; Sun, 6 Oct 2019 21:00:17 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x96L0Hhh044287 for fs@FreeBSD.org; Sun, 6 Oct 2019 21:00:17 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201910062100.x96L0Hhh044287@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: fs@FreeBSD.org Subject: Problem reports for fs@FreeBSD.org that need special attention Date: Sun, 6 Oct 2019 21:00:17 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 21:00:18 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 203492 | mount_unionfs -o below causes panic Open | 144447 | [zfs] sharenfs fsunshare() & fsshare_main() non f Open | 211491 | System hangs after "Uptime" on reboot with ZFS Open | 221909 | [ZFS] Add a sysctl to toggle send_corrupt_data Open | 235665 | panic: handle_written_inodeblock: live inodedep Open | 237067 | ZFS: Crash in vdev_dtl_reassess when using GELI w Open | 240831 | zfs: Panic during snapshot on 12.1-STABLE r352648 7 problems total for which you should take action. From owner-freebsd-fs@freebsd.org Sun Oct 6 21:43:51 2019 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 B6E49135B0B for ; Sun, 6 Oct 2019 21:43:51 +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 46mcYz4V7sz3P7L for ; Sun, 6 Oct 2019 21:43:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9A187135B0A; Sun, 6 Oct 2019 21:43:51 +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 98C30135B09 for ; Sun, 6 Oct 2019 21:43:51 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mcYz3Vqjz3P7K for ; Sun, 6 Oct 2019 21:43:51 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5D3474A9B for ; Sun, 6 Oct 2019 21:43:51 +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 x96Lhpwl045766 for ; Sun, 6 Oct 2019 21:43:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x96LhpST045765 for fs@FreeBSD.org; Sun, 6 Oct 2019 21:43:51 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 233849] r339008 broke repquota on UFS Date: Sun, 06 Oct 2019 21:43:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: johan.liet-freebsd@homeunix.nl X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sef@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? mfc-stable12+ 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2019 21:43:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233849 --- Comment #18 from johan liet --- The function "quota_maxid" gives a zero in return with quotaon, but gives the real "maxid" with quotaoff. So there is the bug. The patch for ufs is useless. I put temperarely "maxid =3D 65534;" (nobody) in repquota and quotacheck And that works. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 09:00:37 2019 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 2A3DEFE4C8 for ; Mon, 7 Oct 2019 09:00:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46mvZs0Lh9z4ZjP for ; Mon, 7 Oct 2019 09:00:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 09F3FFE4C7; Mon, 7 Oct 2019 09:00:37 +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 09BAFFE4C6 for ; Mon, 7 Oct 2019 09:00:37 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46mvZr6WS2z4ZjN for ; Mon, 7 Oct 2019 09:00:36 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B8295C383 for ; Mon, 7 Oct 2019 09:00:36 +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 x9790aqt089163 for ; Mon, 7 Oct 2019 09:00:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9790aPv089162 for fs@FreeBSD.org; Mon, 7 Oct 2019 09:00:36 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 236220] ZFS vnode deadlock on zfs_mknode Date: Mon, 07 Oct 2019 09:00:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: julien@perdition.city X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 09:00:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236220 --- Comment #27 from Julien Cigar --- I just noticed https://svnweb.freebsd.org/base?view=3Drevision&revision=3D3= 53176 .. I guess that it's the "proper fix" :) thanks for the work Andriy ! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 17:49:23 2019 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 922F2135604 for ; Mon, 7 Oct 2019 17:49:23 +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 46n7Jz3MpGz4LyY for ; Mon, 7 Oct 2019 17:49:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 71EDE135603; Mon, 7 Oct 2019 17:49:23 +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 71B5F135602 for ; Mon, 7 Oct 2019 17:49:23 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n7Jz2QPBz4LyW for ; Mon, 7 Oct 2019 17:49:23 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 372941A32E for ; Mon, 7 Oct 2019 17:49:23 +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 x97HnNlp003183 for ; Mon, 7 Oct 2019 17:49:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97HnNR2003182 for fs@FreeBSD.org; Mon, 7 Oct 2019 17:49:23 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 241083] zfs: zpool import seems to probe all snapshots Date: Mon, 07 Oct 2019 17:49:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 17:49:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #20 from Alan Somers --- I can reproduce the problem locally, and the patch does speed up import for= me. Are you experiencing cache effects perhaps? Please try the experiment aga= in, but repeat the import command 4 times with each vfs.zfs.vol.recursive setti= ng.=20 That should let us rule out cache effects. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 18:42:39 2019 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 4D28E136765 for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46n8VR1MS9z4Pny for ; Mon, 7 Oct 2019 18:42:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2E267136764; Mon, 7 Oct 2019 18:42:39 +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 2CE9E136763 for ; Mon, 7 Oct 2019 18:42:39 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n8VR0CXPz4Pnx for ; Mon, 7 Oct 2019 18:42:39 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DEF071ADEC for ; Mon, 7 Oct 2019 18:42:38 +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 x97IgcHr065282 for ; Mon, 7 Oct 2019 18:42:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97IgcG1065280 for fs@FreeBSD.org; Mon, 7 Oct 2019 18:42:38 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 241083] zfs: zpool import seems to probe all snapshots Date: Mon, 07 Oct 2019 18:42:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 18:42:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #21 from Martin Birgmeier --- Here are two sets of results: [0]# ll /lib/libzfs.so.3*=20=20=20=20=20=20=20=20=20=20=20=20=20=20 -r--r--r-- 1 root wheel 310944 Oct 6 09:10 /lib/libzfs.so.3 -r--r--r-- 1 root wheel 310944 Dec 30 2018 /lib/libzfs.so.3.ORIG [0]# sysctl vfs.zfs.vol.recursive=20=20=20=20=20=20 vfs.zfs.vol.recursive: 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.05s user 1.00s system 9% cpu 11.424 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.06s user 0.79s system 77% cpu 1.106 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 83% cpu 0.972 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.78s system 108% cpu 0.741 total [1]# sysctl vfs.zfs.vol.recursive=3D1 vfs.zfs.vol.recursive: 0 -> 1 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.98s system 135% cpu 0.747 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.95s system 220% cpu 0.440 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.93s system 249% cpu 0.380 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.05s user 0.92s system 249% cpu 0.387 total [1]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.83s system 147% cpu 0.581 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.80s system 240% cpu 0.343 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 103% cpu 0.785 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.79s system 234% cpu 0.342 total [1]#=20 One more observation: If there is medium to high disk load, such imports ta= ke much longer. For example, doing a 'tar cf /dev/null /z/backup/rsync' (with = that directory holding a lot of stuff) in parallel, I get (the pool will give a = read rate of between 50..200 MB/s, and the machine has 16 GB main memory): [0]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.85s system 12% cpu 6.924 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.81s system 16% cpu 5.110 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.78s system 21% cpu 3.753 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.85s system 11% cpu 7.981 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.02s user 0.81s system 15% cpu 5.366 total [1]# sysctl vfs.zfs.vol.recursive=3D1=20=20=20=20 vfs.zfs.vol.recursive: 0 -> 1 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.98s system 9% cpu 10.749 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.97s system 12% cpu 7.945 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.94s system 28% cpu 3.382 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.04s user 0.95s system 8% cpu 11.164 total [1]# sysctl vfs.zfs.vol.recursive=3D0=20=20=20=20 vfs.zfs.vol.recursive: 1 -> 0 [0]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.81s system 8% cpu 10.134 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.01s user 0.81s system 11% cpu 7.034 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.80s system 9% cpu 8.948 total [1]# time zpool import nonexistent_pool cannot import 'nonexistent_pool': no such pool available zpool import nonexistent_pool 0.03s user 0.78s system 15% cpu 5.380 total [1]# diff =3D(strings /lib/libzfs.so.3.ORIG) =3D(strings /lib/libzfs.so.3) 870a871 > vfs.zfs.vol.recursive 1230a1232 > ZFS::ZVOL 1586a1589 > sysctlbyname 1989d1991 < sysctlbyname 2125,2126d2126 < fff. < ffff. 2128,2130d2127 < l$(I < \$0H < ffffff. 2131a2129,2132 > ffff. > fffff. > fffff. > s0A9 2987a2989 > Lc5=3D [1]#=20 -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 18:48:42 2019 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 6DA951369A6 for ; Mon, 7 Oct 2019 18:48:42 +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 46n8dQ2JP0z4Q8k for ; Mon, 7 Oct 2019 18:48:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4D5181369A5; Mon, 7 Oct 2019 18:48:42 +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 4D1611369A4 for ; Mon, 7 Oct 2019 18:48:42 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n8dQ1Nkpz4Q8j for ; Mon, 7 Oct 2019 18:48:42 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0FC271ADF4 for ; Mon, 7 Oct 2019 18:48:42 +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 x97ImfIL073226 for ; Mon, 7 Oct 2019 18:48:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97ImfOa073225 for fs@FreeBSD.org; Mon, 7 Oct 2019 18:48:41 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 241083] zfs: zpool import seems to probe all snapshots Date: Mon, 07 Oct 2019 18:48:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 18:48:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #22 from Martin Birgmeier --- One more thing: Today, the system was not yet up for a long time and also didn't have much disk activity. Could it be that there is still enough free (main) memory for the zfs buffer cache (or whatever it's called) and theref= ore all times are relatively low, whereas when such a cache is full the system first has to make space in order to be able to read in the information need= ed for the import, and freeing such space is continuously negated by continued high disk activity which would fill any space in the buffer cache immediate= ly again? -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 18:59:31 2019 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 2C17A136D7B for ; Mon, 7 Oct 2019 18:59:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46n8sv0RmRz4Qn0 for ; Mon, 7 Oct 2019 18:59:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0F2F3136D79; Mon, 7 Oct 2019 18:59:31 +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 0EF07136D78 for ; Mon, 7 Oct 2019 18:59:31 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46n8st6gn7z4Qmx for ; Mon, 7 Oct 2019 18:59:30 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C889E1AFC0 for ; Mon, 7 Oct 2019 18:59:30 +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 x97IxUg5099374 for ; Mon, 7 Oct 2019 18:59:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97IxUY9099373 for fs@FreeBSD.org; Mon, 7 Oct 2019 18:59:30 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 241083] zfs: zpool import seems to probe all snapshots Date: Mon, 07 Oct 2019 18:59:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 18:59:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241083 --- Comment #23 from Alan Somers --- Yes, high disk activity will certainly interfere with the measurements. And more snapshots will make the picture clearer. For my tests, I used one zvol with 3000 snapshots. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Mon Oct 7 20:19:27 2019 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 5F5F61387FD for ; Mon, 7 Oct 2019 20:19:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46nBf71yq6z4WZf for ; Mon, 7 Oct 2019 20:19:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 41B3D1387FC; Mon, 7 Oct 2019 20:19:27 +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 417711387FB for ; Mon, 7 Oct 2019 20:19:27 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nBf715GLz4WZd for ; Mon, 7 Oct 2019 20:19:27 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 08F391BE77 for ; Mon, 7 Oct 2019 20:19:27 +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 x97KJQhY013984 for ; Mon, 7 Oct 2019 20:19:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x97KJQ4B013983 for fs@FreeBSD.org; Mon, 7 Oct 2019 20:19:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 241069] zfs: scrub does not detect all errors on active spares Date: Mon, 07 Oct 2019 20:19:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 20:19:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241069 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: asomers Date: Mon Oct 7 20:19:06 UTC 2019 New revision: 353288 URL: https://svnweb.freebsd.org/changeset/base/353288 Log: ZFS: mark hotspare_scrub_002_pos as an expected failure "zpool scrub" doesn't detect all errors on active spares in raidz arrays PR: 241069 MFC after: 2 weeks Sponsored by: Axcient Changes: head/tests/sys/cddl/zfs/tests/hotspare/hotspare_test.sh --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Tue Oct 8 00:40:17 2019 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 2D27813D344 for ; Tue, 8 Oct 2019 00:40:17 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 46nJR34pgNz3GPs for ; Tue, 8 Oct 2019 00:40:12 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id EC6654EB for ; Mon, 7 Oct 2019 20:40:08 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute5.internal (MEProxy); Mon, 07 Oct 2019 20:40:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=eJxrzh4xjq1Y3b5yapAWKhw+SrrJttsN5SDAgpSn4Uo=; b=d15UE+s/ shz9V6Z9o/QO5P4XZzick/7bg6pNbqmlPjBch6838JZUR4Z4rHiLzwctmG8Gvprg kR7AkUfvKnsBEsTY5rA5vV9xCCI4pfBRlf8w8fqaUwztdjheQz1I0YQ1xiS/aDG3 s3H0n2acAOs8ooKgYoooYUz+86wk1htz6jV/FSUxEyu7BxVZJDjp/uE7xW8Kyj44 yxTVu+wIrFPTlzrV7Bpb07iRfkBwdJPCYioCqGo91/tiV8rIzEOKwDLTk8qbcbTu +kTz+QsmYOuvlT20Kkvj8hwtDP74xgZPPwc8jTLLxjy5ncJZ4G1vagke8/AIhvvu F0eEwodmA7o3NA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=eJxrzh4xjq1Y3b5yapAWKhw+SrrJt tsN5SDAgpSn4Uo=; b=WhhDSiYwG0VMtw6XhtOj9lKKiRB9je8ikjzoKL3M0m5ne bzAnb9hHwkPuL4EeUjdRMsX5pObBG7p/L23/FVsLOikg6j5BFnZlwfoFDuAYbLUx gWewsYs3xrbt3tiMej9YSeLvoF28f1LzxxBt+pNGShaM0r5w6/f/1bix1ak0Cgya eYzRzywHtIsYYMLMScyXgJ8mrK5a31SE9sHaU9CAVRu9exE7ka8Hitarbc/Rl0/9 51E9zszo2/txwfEcFMsFA6ry2O1DojB4mHt8J6yPhLPenHxWAghFRDIbh4T4navU lTxnQbDXMlqV87EKFaWnOSijtUFUR5goh8eyYUDCA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrheekgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdgjuhhrihcurfgrnhhkohhvfdcuoeihuhhrihhpvheshihurhhi phhvrdhnvghtqeenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfrrghrrghmpe hmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdrnhgvthenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3050C188005C; Mon, 7 Oct 2019 20:40:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: <68853b35-e202-40b9-80ad-b29bc49bb5b4@www.fastmail.com> Date: Tue, 08 Oct 2019 03:39:45 +0300 From: "Yuri Pankov" To: freebsd-fs@FreeBSD.org Subject: panic: Memory modified after free Content-Type: text/plain X-Rspamd-Queue-Id: 46nJR34pgNz3GPs X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yuripv.net header.s=fm1 header.b=d15UE+s/; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=WhhDSiYw; dmarc=none; spf=pass (mx1.freebsd.org: domain of yuripv@yuripv.net designates 64.147.123.21 as permitted sender) smtp.mailfrom=yuripv@yuripv.net X-Spamd-Result: default: False [-5.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[yuripv.net:s=fm1,messagingengine.com:s=fm1]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[yuripv.net]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yuripv.net:+,messagingengine.com:+]; IP_SCORE(-3.49)[ip: (-9.81), ipnet: 64.147.123.0/24(-4.90), asn: 11403(-2.68), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[21.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 00:40:17 -0000 (posting to fs@ as backtrace suggests zfs) Started seeing the following panic (sometimes reproducible, so can't point specific revision or time range) untaring an archive over ssh into my home directory on zfs: panic: Memory modified after free 0xfffff80404cff000(4096) val=dead40de @ 0xfffff80404cff694 cpuid = 4 time = 1570493241 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00df912650 vpanic() at vpanic+0x19d/frame 0xfffffe00df9126a0 panic() at panic+0x43/frame 0xfffffe00df912700 trash_ctor() at trash_ctor+0x49/frame 0xfffffe00df912710 uma_zalloc_arg() at uma_zalloc_arg+0xa24/frame 0xfffffe00df9127a0 abd_alloc() at abd_alloc+0x152/frame 0xfffffe00df9127f0 arc_hdr_alloc_pabd() at arc_hdr_alloc_pabd+0x166/frame 0xfffffe00df912820 arc_write_ready() at arc_write_ready+0x463/frame 0xfffffe00df912860 zio_ready() at zio_ready+0xde/frame 0xfffffe00df9128a0 zio_execute() at zio_execute+0x17c/frame 0xfffffe00df9128e0 taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe00df912940 taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe00df912970 fork_exit() at fork_exit+0x84/frame 0xfffffe00df9129b0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00df9129b0 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- Full text dump is at https://people.freebsd.org/~yuripv/core.txt.0. Real problem or failing hardware (memory?)? From owner-freebsd-fs@freebsd.org Tue Oct 8 06:22:42 2019 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 A843413A32C for ; Tue, 8 Oct 2019 06:22:42 +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 46nS2B3kh0z4R5t for ; Tue, 8 Oct 2019 06:22:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 73FA413A327; Tue, 8 Oct 2019 06:22:42 +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 6E66F13A324 for ; Tue, 8 Oct 2019 06:22:42 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nS2B1xHYz4R5Q for ; Tue, 8 Oct 2019 06:22:42 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2741823DA3 for ; Tue, 8 Oct 2019 06:22:42 +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 x986Mg7F086796 for ; Tue, 8 Oct 2019 06:22:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x986MgcO086786 for fs@FreeBSD.org; Tue, 8 Oct 2019 06:22:42 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 241117] zfs_unlinked_drain takes "forever" for over-quota ZFS filesystems Date: Tue, 08 Oct 2019 06:22:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 06:22:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241117 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |fs@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-fs@freebsd.org Tue Oct 8 07:12:33 2019 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 7284413BF81 for ; Tue, 8 Oct 2019 07:12:33 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nT7h39J8z4Tkb for ; Tue, 8 Oct 2019 07:12:32 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf1-f43.google.com with SMTP id y127so11145476lfc.0 for ; Tue, 08 Oct 2019 00:12:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=z9YEd7hVMUMkS30Kykc5WIt2H/NOgJ+FMNp2chRnjBE=; b=QiGq2hmDbdpP3NfffkcN18EodEqDfcK1DvPY0GniivQqMAek67Lvl06Wv1zLRegoWe 0krKG0dgGifatglfUYCdJh477Zv3+lXrmsvlvSUzHtoXt9GXobgFSL3kUoqVeft0TKdQ Ce5VyflR0lNQbvhvyTD5tG3czXP+qWgffDEdG2wkAnFDLcPTimNLl9RjyeGpV5GbfAcY bY2lCqiK0AclEC7hCrj8sRpJnR5zS5pV3NGCQRr/uC9QTDm6yX/bNPttp8YNZl5cEN+y vmk9LvWjK/RHFoF8vlTeKKmx+noofKMcrITf261O+AVKfmD6O6cUQM5Pj4Pa9QVvQoWh XmwQ== X-Gm-Message-State: APjAAAXTmnPz7IPKzcHV6LxC9Rz+FRjwwgaln7WyuSIngID/9lI/Cjm0 x/tUv51vERMj8Mch+JHlASG33yjWozY= X-Google-Smtp-Source: APXvYqzXYd3jXctHiyhE6EccjzBd/GQ0HzXcu+spb5j7XYmoDSfiGrZhMoCh75SeMj3/QHPPoXT+3Q== X-Received: by 2002:a19:5f55:: with SMTP id a21mr20388058lfj.56.1570518750013; Tue, 08 Oct 2019 00:12:30 -0700 (PDT) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id y206sm3361040lfc.6.2019.10.08.00.12.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Oct 2019 00:12:29 -0700 (PDT) Subject: Re: panic: Memory modified after free To: Yuri Pankov , freebsd-fs@FreeBSD.org References: <68853b35-e202-40b9-80ad-b29bc49bb5b4@www.fastmail.com> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= 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 Message-ID: Date: Tue, 8 Oct 2019 10:12:28 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <68853b35-e202-40b9-80ad-b29bc49bb5b4@www.fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46nT7h39J8z4Tkb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.167.43 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-3.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[43.167.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-1.16)[ip: (-0.37), ipnet: 209.85.128.0/17(-3.26), asn: 15169(-2.14), country: US(-0.05)]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[43.167.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[96.151.72.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 07:12:33 -0000 On 08/10/2019 03:39, Yuri Pankov wrote: > (posting to fs@ as backtrace suggests zfs) > > Started seeing the following panic (sometimes reproducible, so can't point specific revision or time range) untaring an archive over ssh into my home directory on zfs: > > panic: Memory modified after free 0xfffff80404cff000(4096) val=dead40de @ 0xfffff80404cff694 > > cpuid = 4 > time = 1570493241 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00df912650 > vpanic() at vpanic+0x19d/frame 0xfffffe00df9126a0 > panic() at panic+0x43/frame 0xfffffe00df912700 > trash_ctor() at trash_ctor+0x49/frame 0xfffffe00df912710 > uma_zalloc_arg() at uma_zalloc_arg+0xa24/frame 0xfffffe00df9127a0 > abd_alloc() at abd_alloc+0x152/frame 0xfffffe00df9127f0 > arc_hdr_alloc_pabd() at arc_hdr_alloc_pabd+0x166/frame 0xfffffe00df912820 > arc_write_ready() at arc_write_ready+0x463/frame 0xfffffe00df912860 > zio_ready() at zio_ready+0xde/frame 0xfffffe00df9128a0 > zio_execute() at zio_execute+0x17c/frame 0xfffffe00df9128e0 > taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe00df912940 > taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe00df912970 > fork_exit() at fork_exit+0x84/frame 0xfffffe00df9129b0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00df9129b0 > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > Full text dump is at https://people.freebsd.org/~yuripv/core.txt.0. > > Real problem or failing hardware (memory?)? Given a single bit difference between 0xdead40de and 0xdeadc0de, it can be either. If the memory is not ECC, then I would assume a hardware problem first. -- Andriy Gapon From owner-freebsd-fs@freebsd.org Tue Oct 8 15:25:49 2019 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 D59E212D1D8 for ; Tue, 8 Oct 2019 15:25:49 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 46nh4s5P4Xz46Rg; Tue, 8 Oct 2019 15:25:49 +0000 (UTC) (envelope-from yuripv@yuripv.net) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 12E7A21B2B; Tue, 8 Oct 2019 11:25:49 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute5.internal (MEProxy); Tue, 08 Oct 2019 11:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=AJvxFkKnIJbs0BYkZgka7fcI+cxXouq Yacae/4P74E8=; b=ngH0Awsr1uXpmIXeLSpaHN+cba1C/6omr1EDzBTimMshnOr K/+q6omZnqtDx8p3ArolkqmhuzPIlc/NcMwsacXljcMJ7R8xxRd58zUEg3uP6q3C 4VhVenpHAWU4D/a6zlEKobyj383tNSrd6U6ctE2f9WLRYx131s5kSxIqUidTkodi hnTwhTW29W5lLLEzJfWigY8U8S/emBgPEEieDjIUG0fiMX8Pt5peo5ZIYqJ1bELU ybL+ytqvcd87NWrxkhC390Ckn4qQzbizCiw13QjmAkBNbnNhLBopH8XYveYu6psr xUIVHVKl/Fy1D/lKO0FKXvZmmVDgeKm0mBB4Dcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=AJvxFk KnIJbs0BYkZgka7fcI+cxXouqYacae/4P74E8=; b=ABMLkapXVwanPsQKAj55Ci EuSP+dETt/fnWV2DoMQv3/J0eS+5KJM5gNkXw6F5KTwPVLQNRIyPZkPblUohAwFp BjA2mY16hbsEQ7Ju3QHDsxWLVHsufEmDaJnNXnbLLxvhfP0NM0OeEApN9tBRppDd cliGsZDl/7pQULZ4WsZ4eBXnyPPTUOCJ2CtwEhU9Quml/BsBKYyvhouFqorQPgkv s3aWImKBhPevvOmUQoVzklysa1vnl+2q4mRBjm9AxkOvs7gPsvSR1iXkjkytDJRN XRw+gdiHzzHcRXPrJOSRssjYFH/3O0j7/O13sO4sAfdgSCqU6KIJ3WX6G4kTzYug == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrheelgdeludcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdgjuhhrihcurfgrnhhkohhvfdcuoeihuhhrihhpvheshihu rhhiphhvrdhnvghtqeenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfrrghrrg hmpehmrghilhhfrhhomhephihurhhiphhvseihuhhrihhpvhdrnhgvthenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A6441188005E; Tue, 8 Oct 2019 11:25:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-360-g7dda896-fmstable-20191004v2 Mime-Version: 1.0 Message-Id: <16474299-09e4-4b6f-9e12-5e04b7b4c3b6@www.fastmail.com> In-Reply-To: References: <68853b35-e202-40b9-80ad-b29bc49bb5b4@www.fastmail.com> Date: Tue, 08 Oct 2019 18:25:19 +0300 From: "Yuri Pankov" To: "Andriy Gapon" , freebsd-fs@FreeBSD.org Subject: Re: panic: Memory modified after free Content-Type: text/plain X-Rspamd-Queue-Id: 46nh4s5P4Xz46Rg X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.995,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 15:25:49 -0000 On Tue, Oct 8, 2019, at 10:12 AM, Andriy Gapon wrote: > On 08/10/2019 03:39, Yuri Pankov wrote: > > (posting to fs@ as backtrace suggests zfs) > > > > Started seeing the following panic (sometimes reproducible, so can't point specific revision or time range) untaring an archive over ssh into my home directory on zfs: > > > > panic: Memory modified after free 0xfffff80404cff000(4096) val=dead40de @ 0xfffff80404cff694 > > > > cpuid = 4 > > time = 1570493241 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00df912650 > > vpanic() at vpanic+0x19d/frame 0xfffffe00df9126a0 > > panic() at panic+0x43/frame 0xfffffe00df912700 > > trash_ctor() at trash_ctor+0x49/frame 0xfffffe00df912710 > > uma_zalloc_arg() at uma_zalloc_arg+0xa24/frame 0xfffffe00df9127a0 > > abd_alloc() at abd_alloc+0x152/frame 0xfffffe00df9127f0 > > arc_hdr_alloc_pabd() at arc_hdr_alloc_pabd+0x166/frame 0xfffffe00df912820 > > arc_write_ready() at arc_write_ready+0x463/frame 0xfffffe00df912860 > > zio_ready() at zio_ready+0xde/frame 0xfffffe00df9128a0 > > zio_execute() at zio_execute+0x17c/frame 0xfffffe00df9128e0 > > taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe00df912940 > > taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe00df912970 > > fork_exit() at fork_exit+0x84/frame 0xfffffe00df9129b0 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00df9129b0 > > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > > > Full text dump is at https://people.freebsd.org/~yuripv/core.txt.0. > > > > Real problem or failing hardware (memory?)? > > Given a single bit difference between 0xdead40de and 0xdeadc0de, it can be > either. If the memory is not ECC, then I would assume a hardware problem first. Thank you. Laptop with non-ECC memory, which started showing those bit flips after several memtest86 runs (it didn't previously). Sorry for the noise! From owner-freebsd-fs@freebsd.org Tue Oct 8 16:20:42 2019 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 75EE212F48E for ; Tue, 8 Oct 2019 16:20:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46njJB2dqYz4Bxc for ; Tue, 8 Oct 2019 16:20:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5A89312F48C; Tue, 8 Oct 2019 16:20:42 +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 5A50D12F48B for ; Tue, 8 Oct 2019 16:20:42 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46njJB1mPjz4Bxb for ; Tue, 8 Oct 2019 16:20:42 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1B35C286B for ; Tue, 8 Oct 2019 16:20:42 +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 x98GKfSm019260 for ; Tue, 8 Oct 2019 16:20:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x98GKfH0019259 for fs@FreeBSD.org; Tue, 8 Oct 2019 16:20:41 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 240640] zfs send -n -P -i is broken after r344601 Date: Tue, 08 Oct 2019 16:20:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sef@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? 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-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 16:20:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240640 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #14 from Mark Johnston --- Can this PR be closed? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-fs@freebsd.org Tue Oct 8 18:02:51 2019 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 663CA132718 for ; Tue, 8 Oct 2019 18:02:51 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nlZ31f6pz4KyV; Tue, 8 Oct 2019 18:02:51 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (c-73-225-95-104.hsd1.wa.comcast.net [73.225.95.104]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id x98I2gs4005817 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO); Tue, 8 Oct 2019 11:02:43 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: panic: Memory modified after free To: Andriy Gapon , Yuri Pankov , freebsd-fs@FreeBSD.org References: <68853b35-e202-40b9-80ad-b29bc49bb5b4@www.fastmail.com> From: Julian Elischer Message-ID: <069ede9f-1098-e809-50a2-55844dd6b57c@freebsd.org> Date: Tue, 8 Oct 2019 11:02:37 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 46nlZ31f6pz4KyV X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2019 18:02:51 -0000 On 10/8/19 12:12 AM, Andriy Gapon wrote: > On 08/10/2019 03:39, Yuri Pankov wrote: >> (posting to fs@ as backtrace suggests zfs) >> >> Started seeing the following panic (sometimes reproducible, so can't point specific revision or time range) untaring an archive over ssh into my home directory on zfs: >> >> panic: Memory modified after free 0xfffff80404cff000(4096) val=dead40de @ 0xfffff80404cff694 >> >> cpuid = 4 >> time = 1570493241 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00df912650 >> vpanic() at vpanic+0x19d/frame 0xfffffe00df9126a0 >> panic() at panic+0x43/frame 0xfffffe00df912700 >> trash_ctor() at trash_ctor+0x49/frame 0xfffffe00df912710 >> uma_zalloc_arg() at uma_zalloc_arg+0xa24/frame 0xfffffe00df9127a0 >> abd_alloc() at abd_alloc+0x152/frame 0xfffffe00df9127f0 >> arc_hdr_alloc_pabd() at arc_hdr_alloc_pabd+0x166/frame 0xfffffe00df912820 >> arc_write_ready() at arc_write_ready+0x463/frame 0xfffffe00df912860 >> zio_ready() at zio_ready+0xde/frame 0xfffffe00df9128a0 >> zio_execute() at zio_execute+0x17c/frame 0xfffffe00df9128e0 >> taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe00df912940 >> taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe00df912970 >> fork_exit() at fork_exit+0x84/frame 0xfffffe00df9129b0 >> fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00df9129b0 >> --- trap 0, rip = 0, rsp = 0, rbp = 0 --- >> >> Full text dump is at https://people.freebsd.org/~yuripv/core.txt.0. >> >> Real problem or failing hardware (memory?)? > Given a single bit difference between 0xdead40de and 0xdeadc0de, it can be > either. If the memory is not ECC, then I would assume a hardware problem first. > > so assuming that we know what type of object it was, if it is being reused, is that bit something that is or'd or anded? From owner-freebsd-fs@freebsd.org Wed Oct 9 01:35:12 2019 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 BEE0013CE08 for ; Wed, 9 Oct 2019 01:35:12 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from symbion.zaytman.com (symbion.zaytman.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46nxbz6sVkz3HM6 for ; Wed, 9 Oct 2019 01:35:11 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-5-48-210.nwrknj.fios.verizon.net [108.5.48.210]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id x991Z9sX095679 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 8 Oct 2019 21:35:09 -0400 (EDT) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-5-48-210.nwrknj.fios.verizon.net [108.5.48.210] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.3.13]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id x991Z7Ne037076 for ; Tue, 8 Oct 2019 21:35:07 -0400 (EDT) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.3.13] claimed to be aldan.narawntapu To: freebsd-fs From: "Mikhail T." Subject: Cannot mount an older disk Message-ID: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> Date: Tue, 8 Oct 2019 21:35:07 -0400 MIME-Version: 1.0 Content-Language: en-US X-DCC-uptempo.net-Metrics: narawntapu 1093; bulk rep Body=1 Fuz1=1 Fuz2=1 rep=49% X-Spam-Status: No, score=-0.9 required=19.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE,RATWR8_MESSID autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on narawntapu.narawntapu X-Rspamd-Queue-Id: 46nxbz6sVkz3HM6 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mi@aldan.algebra.com has no SPF policy when checking 64.112.176.10) smtp.mailfrom=mi@aldan.algebra.com X-Spamd-Result: default: False [-0.62 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.69)[-0.688,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.01)[country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.82)[-0.824,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[algebra.com]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:394548, ipnet:64.112.176.0/24, country:US]; TAGGED_FROM(0.00)[t]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[210.48.5.108.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 01:35:12 -0000 Hello! Going through older hard drives, I found one that still seems to work and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find. The disklabel seems sane (except for the number of partitions): # /dev/ada1: 8 partitions: #          size     offset    fstype   [fsize bsize bps/cpg]   b:   12582912          0      swap   c: 1465149168          0    unused        0     0 # "raw" part, don't edit   d: 1452566256   12582912    4.2BSD     8192 65536 52352 and there are ada1, ada1b, and ada1d entries under /dev. So far so good. Unfortunately, both mount and fsck tell me the same blatant lie, that the device does not exist: # fsck -y /dev/ada1d Can't open /dev/ada1d: No such file or directory # mount /dev/ada1d /mnt mount: /dev/ada1d: No such file or directory Any suggestions? Thank you! Yours, -mi From owner-freebsd-fs@freebsd.org Wed Oct 9 01:48:57 2019 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 5F6E613D1CF for ; Wed, 9 Oct 2019 01:48:57 +0000 (UTC) (envelope-from spork@bway.net) Received: from smtp1.bway.net (smtp1.bway.net [216.220.96.27]) (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 46nxvr0rNlz3HlZ for ; Wed, 9 Oct 2019 01:48:55 +0000 (UTC) (envelope-from spork@bway.net) Received: from gaseousweiner.sporklab.com (pool-173-70-93-30.nwrknj.fios.verizon.net [173.70.93.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: spork@bway.net) by smtp1.bway.net (Postfix) with ESMTPSA id 52B7A958B9; Tue, 8 Oct 2019 21:48:53 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Cannot mount an older disk From: Charles Sprickman In-Reply-To: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> Date: Tue, 8 Oct 2019 21:48:51 -0400 Cc: Tom Evans via freebsd-fs X-Mao-Original-Outgoing-Id: 592278531.316462-9a1bfab5f00c94cc0846b3f8560d883c Content-Transfer-Encoding: quoted-printable Message-Id: References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> To: "Mikhail T." X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46nxvr0rNlz3HlZ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bway.net:s=mail]; RECEIVED_SPAMHAUS_PBL(0.00)[30.93.70.173.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.220.96.27/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[t]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DWL_DNSWL_LOW(-1.00)[bway.net.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bway.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bway.net,quarantine]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-0.01)[country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[27.96.220.216.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8059, ipnet:216.220.96.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 01:48:57 -0000 > On Oct 8, 2019, at 9:35 PM, Mikhail T. wrote: >=20 > Hello! >=20 > Going through older hard drives, I found one that still seems to work = and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find. = The disklabel seems sane (except for the number of partitions): >=20 > # /dev/ada1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > b: 12582912 0 swap > c: 1465149168 0 unused 0 0 # "raw" part, > don't edit > d: 1452566256 12582912 4.2BSD 8192 65536 52352 >=20 > and there are ada1, ada1b, and ada1d entries under /dev. So far so = good. Unfortunately, both mount and fsck tell me the same blatant lie, = that the device does not exist: >=20 > # fsck -y /dev/ada1d > Can't open /dev/ada1d: No such file or directory >=20 > # mount /dev/ada1d /mnt > mount: /dev/ada1d: No such file or directory Very curious about this as well - I have a stack of a few dozen drives = that I=E2=80=99m wiping before they go to recycling and I=E2=80=99ve hit = a number where I get this same error. I=E2=80=99ve been having a hard time keeping up with what=E2=80=99s new = in 11.x and 12.x without following all the mailing lists. I feel like = there=E2=80=99s some cool new stuff, but no idea where it=E2=80=99s = documented these days (I=E2=80=99m on about 20 years or so of using = FreeBSD). Charles >=20 > Any suggestions? Thank you! Yours, >=20 > -mi >=20 >=20 >=20 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" From owner-freebsd-fs@freebsd.org Wed Oct 9 07:32:27 2019 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 E9C2F1439A2 for ; Wed, 9 Oct 2019 07:32:27 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (kipling.tavi.co.uk [81.187.145.130]) by mx1.freebsd.org (Postfix) with ESMTP id 46p5XB5Jrlz44Ql for ; Wed, 9 Oct 2019 07:32:26 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (localhost [127.0.0.1]) by kipling.tavi.co.uk (Postfix) with ESMTP id 186C73C69C for ; Wed, 9 Oct 2019 08:32:17 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tavi.co.uk; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=selector1; bh=NaKTaRU Onx+SSto3E9lc3NL1mEE=; b=kjB01IlNLJWAE38wWlE/2zbXHIF7fiPAhQjvEeQ YiPo8KRt22UOLxfO7wSNdrop/DtK9yZ2Gxhz1II7u1fQnKkRh0CvazQb0RmJzMA6 rxzpgHGrS21tJ1u5ukfImVdHzi9wukZmmEzHk36AC8zlqm+ho1W+KHOPP+kXsr7U 7Cdw= Received: from raksha.tavi.co.uk (raksha.tavi.co.uk [81.187.145.139]) (Authenticated sender: rde@tavi.co.uk) by kipling.tavi.co.uk (Postfix) with ESMTPA id D797B3BF83 for ; Wed, 9 Oct 2019 08:32:16 +0100 (BST) Date: Wed, 9 Oct 2019 08:32:16 +0100 From: Bob Eager To: freebsd-fs@freebsd.org Subject: Re: Cannot mount an older disk Message-ID: <20191009083216.39e0c903@raksha.tavi.co.uk> In-Reply-To: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg====== MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46p5XB5Jrlz44Ql X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tavi.co.uk header.s=selector1 header.b=kjB01IlN; dmarc=pass (policy=none) header.from=tavi.co.uk; spf=pass (mx1.freebsd.org: domain of rde@tavi.co.uk designates 81.187.145.130 as permitted sender) smtp.mailfrom=rde@tavi.co.uk X-Spamd-Result: default: False [-6.52 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[tavi.co.uk:s=selector1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:kipling.tavi.co.uk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[tavi.co.uk:+]; DMARC_POLICY_ALLOW(-0.50)[tavi.co.uk,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-3.62)[ip: (-9.60), ipnet: 81.187.0.0/16(-4.71), asn: 20712(-3.69), country: GB(-0.08)]; ASN(0.00)[asn:20712, ipnet:81.187.0.0/16, country:GB] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 07:32:28 -0000 On Tue, 8 Oct 2019 21:35:07 -0400 "Mikhail T." wrote: > Hello! >=20 > Going through older hard drives, I found one that still seems to work=20 > and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find.=20 > The disklabel seems sane (except for the number of partitions): >=20 > # /dev/ada1: > 8 partitions: > #=A0=A0=A0=A0=A0=A0=A0=A0=A0 size=A0=A0=A0=A0 offset=A0=A0=A0 fstype= =A0=A0 [fsize bsize bps/cpg] > =A0 b:=A0=A0 12582912=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0 sw= ap > =A0 c: 1465149168=A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0 unused=A0=A0= =A0=A0=A0=A0=A0 0=A0=A0=A0=A0 0 # "raw" part, > don't edit > =A0 d: 1452566256=A0=A0 12582912=A0=A0=A0 4.2BSD=A0=A0=A0=A0 8192 65= 536 52352 >=20 > and there are ada1, ada1b, and ada1d entries under /dev. So far so > good. Unfortunately, both mount and fsck tell me the same blatant > lie, that the device does not exist: >=20 > # fsck -y /dev/ada1d > Can't open /dev/ada1d: No such file or directory >=20 > # mount /dev/ada1d /mnt > mount: /dev/ada1d: No such file or directory >=20 > Any suggestions? Thank you! Yours, Custom kernel? If so, try booting GENERIC. Might be that a support fs option is missing. From owner-freebsd-fs@freebsd.org Wed Oct 9 08:05:33 2019 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 7DC95144E86 for ; Wed, 9 Oct 2019 08:05:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46p6GN5k9Mz45x9 for ; Wed, 9 Oct 2019 08:05:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x9985PXe056397 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 9 Oct 2019 11:05:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x9985PXe056397 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x9985PMQ056396; Wed, 9 Oct 2019 11:05:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 9 Oct 2019 11:05:25 +0300 From: Konstantin Belousov To: Bob Eager Cc: freebsd-fs@freebsd.org Subject: Re: Cannot mount an older disk Message-ID: <20191009080525.GJ44691@kib.kiev.ua> References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> <20191009083216.39e0c903@raksha.tavi.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191009083216.39e0c903@raksha.tavi.co.uk> User-Agent: Mutt/1.12.2 (2019-09-21) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46p6GN5k9Mz45x9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.00)[ip: (-2.68), ipnet: 2001:470::/32(-4.57), asn: 6939(-3.40), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 08:05:33 -0000 On Wed, Oct 09, 2019 at 08:32:16AM +0100, Bob Eager wrote: > On Tue, 8 Oct 2019 21:35:07 -0400 > "Mikhail T." wrote: > > > Hello! > > > > Going through older hard drives, I found one that still seems to work > > and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find. > > The disklabel seems sane (except for the number of partitions): > > > > # /dev/ada1: > > 8 partitions: > > #          size     offset    fstype   [fsize bsize bps/cpg] > >   b:   12582912          0      swap > >   c: 1465149168          0    unused        0     0 # "raw" part, > > don't edit > >   d: 1452566256   12582912    4.2BSD     8192 65536 52352 > > > > and there are ada1, ada1b, and ada1d entries under /dev. So far so > > good. Unfortunately, both mount and fsck tell me the same blatant > > lie, that the device does not exist: > > > > # fsck -y /dev/ada1d > > Can't open /dev/ada1d: No such file or directory > > > > # mount /dev/ada1d /mnt > > mount: /dev/ada1d: No such file or directory > > > > Any suggestions? Thank you! Yours, > > Custom kernel? If so, try booting GENERIC. Might be that a support fs > option is missing. This is most likely a stray bsd label which appeared in the first (second ?) block of the disk due to some pecularities of old partitioning tools. Note the absence of the 'sN', i.e. MBR partition, between raw disk name and bsd slice. Some time at 9 or 10 lifetime priorities changed due to switch to gpart. I do not remember how this was worked around, most likely by zeroing second block of the disk. Of course, it is better to do the experiment on a copy if the original is suspected to contain a useful information. From owner-freebsd-fs@freebsd.org Wed Oct 9 09:47:07 2019 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 59BA4146D61 for ; Wed, 9 Oct 2019 09:47:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46p8Wb1n6Bz4Bdh for ; Wed, 9 Oct 2019 09:47:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3CBEB146D60; Wed, 9 Oct 2019 09:47: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 3C747146D5F for ; Wed, 9 Oct 2019 09:47: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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46p8Wb0wRKz4Bdf for ; Wed, 9 Oct 2019 09:47: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 04A3BEA6C for ; Wed, 9 Oct 2019 09:47: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 x999l61C067767 for ; Wed, 9 Oct 2019 09:47:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x999l6Do067766 for fs@FreeBSD.org; Wed, 9 Oct 2019 09:47:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 240640] zfs send -n -P -i is broken after r344601 Date: Wed, 09 Oct 2019 09:47:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sef@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 09:47:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240640 --- Comment #15 from commit-hook@freebsd.org --- A commit references this bug: Author: avg Date: Wed Oct 9 09:47:00 UTC 2019 New revision: 353338 URL: https://svnweb.freebsd.org/changeset/base/353338 Log: MFC r352580 by sef: Fix a regression introduced in r344601 ... and work properly with the -v and -n options. PR: 240640 Changes: _U stable/11/ stable/11/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-fs@freebsd.org Wed Oct 9 09:48:43 2019 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 AD573146E47 for ; Wed, 9 Oct 2019 09:48:43 +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 46p8YR30vBz4BkX for ; Wed, 9 Oct 2019 09:48:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 66F48146E46; Wed, 9 Oct 2019 09:48:43 +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 66BA4146E45 for ; Wed, 9 Oct 2019 09:48:43 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46p8YR26z0z4BkW for ; Wed, 9 Oct 2019 09:48:43 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2D84AEA75 for ; Wed, 9 Oct 2019 09:48:43 +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 x999mh3t069743 for ; Wed, 9 Oct 2019 09:48:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x999mhnK069742 for fs@FreeBSD.org; Wed, 9 Oct 2019 09:48:43 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 240640] zfs send -n -P -i is broken after r344601 Date: Wed, 09 Oct 2019 09:48:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sef@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? X-Bugzilla-Changed-Fields: bug_status resolution 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.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 09:48:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240640 Andriy Gapon changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --- Comment #16 from Andriy Gapon --- (In reply to Mark Johnston from comment #14) Yes, of course. Let me do it now. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-fs@freebsd.org Wed Oct 9 19:37:22 2019 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 B4D3F12D025 for ; Wed, 9 Oct 2019 19:37:22 +0000 (UTC) (envelope-from spork@bway.net) Received: from smtp1.bway.net (smtp1.bway.net [216.220.96.27]) (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 46pPcd6RGKz3Q3n for ; Wed, 9 Oct 2019 19:37:21 +0000 (UTC) (envelope-from spork@bway.net) Received: from frankentosh.sporklab.com (pool-173-70-93-30.nwrknj.fios.verizon.net [173.70.93.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: spork@bway.net) by smtp1.bway.net (Postfix) with ESMTPSA id F287C9596F; Wed, 9 Oct 2019 15:37:15 -0400 (EDT) From: Charles Sprickman Message-Id: <1D679F0E-49BB-4B7A-9D41-E03D480A394E@bway.net> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Cannot mount an older disk Date: Wed, 9 Oct 2019 15:37:15 -0400 In-Reply-To: <20191009080525.GJ44691@kib.kiev.ua> Cc: Bob Eager , freebsd-fs@freebsd.org To: Konstantin Belousov References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> <20191009083216.39e0c903@raksha.tavi.co.uk> <20191009080525.GJ44691@kib.kiev.ua> X-Mailer: Apple Mail (2.3273) X-Rspamd-Queue-Id: 46pPcd6RGKz3Q3n X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.220.96.27/32]; MV_CASE(0.50)[]; URI_COUNT_ODD(1.00)[9]; DKIM_TRACE(0.00)[bway.net:+]; DMARC_POLICY_ALLOW(-0.50)[bway.net,quarantine]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[30.93.70.173.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; RCVD_IN_DNSWL_LOW(-0.10)[27.96.220.216.list.dnswl.org : 127.0.5.1]; IP_SCORE(-0.01)[country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8059, ipnet:216.220.96.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988,0]; R_DKIM_ALLOW(-0.20)[bway.net:s=mail]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_LOW(-1.00)[bway.net.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 19:37:22 -0000 --=20 Charles Sprickman NetEng/SysAdmin Bway.net - New York's Best Internet www.bway.net spork@bway.net - 212.982.9800 > On Oct 9, 2019, at 4:05 AM, Konstantin Belousov = wrote: >=20 > On Wed, Oct 09, 2019 at 08:32:16AM +0100, Bob Eager wrote: >> On Tue, 8 Oct 2019 21:35:07 -0400 >> "Mikhail T." wrote: >>=20 >>> Hello! >>>=20 >>> Going through older hard drives, I found one that still seems to = work=20 >>> and was curious, what's on it. The OS -- 12.1-STABLE -- sees it = find.=20 >>> The disklabel seems sane (except for the number of partitions): >>>=20 >>> # /dev/ada1: >>> 8 partitions: >>> # size offset fstype [fsize bsize bps/cpg] >>> b: 12582912 0 swap >>> c: 1465149168 0 unused 0 0 # "raw" = part, >>> don't edit >>> d: 1452566256 12582912 4.2BSD 8192 65536 52352 >>>=20 >>> and there are ada1, ada1b, and ada1d entries under /dev. So far so >>> good. Unfortunately, both mount and fsck tell me the same blatant >>> lie, that the device does not exist: >>>=20 >>> # fsck -y /dev/ada1d >>> Can't open /dev/ada1d: No such file or directory >>>=20 >>> # mount /dev/ada1d /mnt >>> mount: /dev/ada1d: No such file or directory >>>=20 >>> Any suggestions? Thank you! Yours, >>=20 >> Custom kernel? If so, try booting GENERIC. Might be that a support fs >> option is missing. >=20 > This is most likely a stray bsd label which appeared in the first = (second ?) > block of the disk due to some pecularities of old partitioning tools. > Note the absence of the 'sN', i.e. MBR partition, between raw disk = name > and bsd slice. Some time at 9 or 10 lifetime priorities changed due = to > switch to gpart. >=20 > I do not remember how this was worked around, most likely by zeroing = second > block of the disk. Of course, it is better to do the experiment on a = copy > if the original is suspected to contain a useful information. All of mine are old, and probably in =E2=80=9Cdangerously dedicated=E2=80=9D= mode. Is there any reason that we=E2=80=99re not backwards-compatible or is it = just something that was not tested? I guess I could boot a 9.x live CD, but that would be kind of sad and = make me feel like a Linux user. :) C > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs = > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org = " From owner-freebsd-fs@freebsd.org Thu Oct 10 05:50:09 2019 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 DCEE7147330; Thu, 10 Oct 2019 05:50:09 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.20]) (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 46pgCh3Shjz4c3X; Thu, 10 Oct 2019 05:50:07 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from pps.filterd (m0170394.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9A5nwWb018619; Thu, 10 Oct 2019 01:50:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=smtpout1; bh=87330nmkVMd+kBTD8HOCex37+P1E6wrm1Z4EkFjt7mc=; b=EGFYq4TnIJTrTcSo+2HTovpkeb6kPJIfQHBZMsKD+4NRXp7gE9fG3h7pihK6mOYUfOpp FjI/jLsp+A9OMZk5nr8LMkkPkDw9zAMIdJBDk8ZhpYQobNNlPYHh92wN45XWjX39DdhC F6x6JKweU9BVxpLcsgT01sUh5nZL0TfVMv6BGjU7Edpnb0rXHvc2ZUzjLihm4QMKKxY2 QVc72HuGbcGFU0eBrx2PWbx9+cxDE7BpgDND1q5usEAOlV/SF888zo2MDvAfsmZsXh0i 3N1kYTxM2Ky0gSDoynDbjLj5uzcvRj+STrmfqWpIdl/x6bYSmyFDohVJCMmg/yOpkfD+ 3w== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2venr7yceb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2019 01:50:04 -0400 Received: from pps.filterd (m0134746.ppops.net [127.0.0.1]) by mx0a-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9A5ltaB161159; Thu, 10 Oct 2019 01:50:03 -0400 Received: from ausc60ps301.us.dell.com (ausc60ps301.us.dell.com [143.166.148.206]) by mx0a-00154901.pphosted.com with ESMTP id 2vhwrfruue-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Oct 2019 01:50:03 -0400 X-LoopCount0: from 10.166.137.63 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208,217";a="1361392574" From: To: , CC: Subject: a issue about getting a devfs node's fullpath Thread-Topic: a issue about getting a devfs node's fullpath Thread-Index: AdV/GGVUhjnLmzB6SsidzxkwZYw4IQ== Date: Thu, 10 Oct 2019 05:49:55 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Zhichao_Li1@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2019-10-10T05:49:54.0280618Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual; aiplabel=External Public x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.93.131.111] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-10_03:2019-10-08,2019-10-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 malwarescore=0 adultscore=0 priorityscore=1501 spamscore=0 impostorscore=0 mlxscore=0 suspectscore=0 mlxlogscore=939 bulkscore=0 clxscore=1031 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910100054 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 clxscore=1031 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910100054 X-Rspamd-Queue-Id: 46pgCh3Shjz4c3X X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=EGFYq4Tn; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Zhichao1.Li@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Zhichao1.Li@dell.com X-Spamd-Result: default: False [-5.89 / 15.00]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DWL_DNSWL_NONE(0.00)[dell.com.dwl.dnswl.org : 127.0.9.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; IP_SCORE(-0.29)[ip: (0.01), ipnet: 148.163.137.0/24(0.01), asn: 22843(-1.42), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 05:50:09 -0000 Dear freebsd developers I know you're swamped, so I'll be brief. I am trying to get a node's full under /dev by calling the function 'vn_ful= lpath', when dealing with things like '/dev/null' or '/dev/usb/1.0.1', it w= orks well. However when dealing a node under more than 2 sub directories (e.g. /dev/bu= s/usb/001/002) which I made by calling 'make_dev_s' , it goes a little bit= different, I got a string "/dev/bus/usb/bus/usb/001/002" And I found the function 'devfs_vptocnp' gets the string wrongly when deali= ng multi slashes path string, I have remark the code as followed and put so= me comments would you please take a look, and tell me what the purpose this func pass t= he string that way? static int devfs_vptocnp(struct vop_vptocnp_args *ap) { struct vnode *vp =3D ap->a_vp; struct vnode **dvp =3D ap->a_vpp; struct devfs_mount *dmp; char *buf =3D ap->a_buf; int *buflen =3D ap->a_buflen; struct devfs_dirent *dd, *de; int i, error; dmp =3D VFSTODEVFS(vp->v_mount); error =3D devfs_populate_vp(vp); if (error !=3D 0) return (error); i =3D *buflen; dd =3D vp->v_data; if (vp->v_type =3D=3D VCHR) { i -=3D strlen(dd->de_cdp->cdp_c.si_name); if (i < 0) { error =3D ENOMEM; goto finished; } bcopy(dd->de_cdp->cdp_c.si_name, buf + i, strlen(dd->de_cdp->cdp_c.si_name)); /* * when dealing with VCHR * the element 'si_name' already * holds the full path string * except rootdir, why not just go * to the rootdir? */ de =3D dd->de_dir; } else if (vp->v_type =3D=3D VDIR) { if (dd =3D=3D dmp->dm_rootdir) { *dvp =3D vp; vref(*dvp); goto finished; } i -=3D dd->de_dirent->d_namlen; if (i < 0) { error =3D ENOMEM; goto finished; } bcopy(dd->de_cdp->cdp_c.si_name, buf + i, strlen(dd->de_cdp->cdp_c.si_name)); de =3D dd->de_dir; } else if (vp->v_type =3D=3D VDIR) { if (dd =3D=3D dmp->dm_rootdir) { *dvp =3D vp; vref(*dvp); goto finished; } i -=3D dd->de_dirent->d_namlen; if (i < 0) { error =3D ENOMEM; goto finished; } bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); de =3D dd; } else { error =3D ENOENT; goto finished; } *buflen =3D i; de =3D devfs_parent_dirent(de); if (de =3D=3D NULL) { error =3D ENOENT; goto finished; } mtx_lock(&devfs_de_interlock); *dvp =3D de->de_vnode; if (*dvp !=3D NULL) { VI_LOCK(*dvp); mtx_unlock(&devfs_de_interlock); vholdl(*dvp); VI_UNLOCK(*dvp); vref(*dvp); vdrop(*dvp); } else { mtx_unlock(&devfs_de_interlock); error =3D ENOENT; } finished: sx_xunlock(&dmp->dm_lock); return (error); } From owner-freebsd-fs@freebsd.org Thu Oct 10 10:31:36 2019 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 1CBA812C8DC for ; Thu, 10 Oct 2019 10:31:36 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [46.17.166.21]) by mx1.freebsd.org (Postfix) with ESMTP id 46pnSQ63K1z3CxY for ; Thu, 10 Oct 2019 10:31:33 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (higson.cam.lispworks.com [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.15.2/8.15.2) with ESMTP id x9AAMqVr000884; Thu, 10 Oct 2019 11:22:52 +0100 (BST) (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id x9AAMp9X031619; Thu, 10 Oct 2019 11:22:51 +0100 Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id x9AAMpUL030739; Thu, 10 Oct 2019 11:22:51 +0100 Date: Thu, 10 Oct 2019 11:22:51 +0100 Message-Id: <201910101022.x9AAMpUL030739@higson.cam.lispworks.com> From: Martin Simmons To: "Mikhail T." CC: freebsd-fs@freebsd.org In-reply-to: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> (mi+t@aldan.algebra.com) Subject: Re: Cannot mount an older disk References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46pnSQ63K1z3CxY X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of martin@lispworks.com has no SPF policy when checking 46.17.166.21) smtp.mailfrom=martin@lispworks.com X-Spamd-Result: default: False [-0.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.915,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.89)[-0.888,0]; TAGGED_RCPT(0.00)[t]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[lispworks.com]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[21.166.17.46.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:51055, ipnet:46.17.166.0/24, country:GB]; IP_SCORE(-0.02)[country: GB(-0.08)] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 10:31:36 -0000 >>>>> On Tue, 8 Oct 2019 21:35:07 -0400, Mikhail T said: > > Hello! > > Going through older hard drives, I found one that still seems to work > and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find. > The disklabel seems sane (except for the number of partitions): > > # /dev/ada1: > 8 partitions: > #          size     offset    fstype   [fsize bsize bps/cpg] >   b:   12582912          0      swap >   c: 1465149168          0    unused        0     0 # "raw" part, > don't edit >   d: 1452566256   12582912    4.2BSD     8192 65536 52352 > > and there are ada1, ada1b, and ada1d entries under /dev. So far so good. > Unfortunately, both mount and fsck tell me the same blatant lie, that > the device does not exist: > > # fsck -y /dev/ada1d > Can't open /dev/ada1d: No such file or directory > > # mount /dev/ada1d /mnt > mount: /dev/ada1d: No such file or directory > > Any suggestions? Thank you! Yours, You could see if file and dumpfs print anything useful: dd if=/dev/ada1d | file - dumpfs /dev/ada1d | head -n 100 Also check the syslog when doing mount. __Martin From owner-freebsd-fs@freebsd.org Thu Oct 10 15:39:45 2019 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 5460B141F98; Thu, 10 Oct 2019 15:39:45 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46pwJ04sc8z4Fhk; Thu, 10 Oct 2019 15:39:44 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x9AFdXhp011691 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 10 Oct 2019 18:39:36 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x9AFdXhp011691 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x9AFdWbZ011690; Thu, 10 Oct 2019 18:39:32 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Thu, 10 Oct 2019 18:39:32 +0300 From: Konstantin Belousov To: Zhichao1.Li@dell.com Cc: freebsd-fs@freebsd.org, freebsd-drivers@freebsd.org, Shunchao.Hu@dell.com Subject: Re: a issue about getting a devfs node's fullpath Message-ID: <20191010153932.GO44691@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46pwJ04sc8z4Fhk X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.79 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.79)[-0.795,0]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 15:39:45 -0000 On Thu, Oct 10, 2019 at 05:49:55AM +0000, Zhichao1.Li@dell.com wrote: > Dear freebsd developers > I know you're swamped, so I'll be brief. > I am trying to get a node's full under /dev by calling the function 'vn_fullpath', when dealing with things like '/dev/null' or '/dev/usb/1.0.1', it works well. > However when dealing a node under more than 2 sub directories (e.g. /dev/bus/usb/001/002) which I made by calling 'make_dev_s' , it goes a little bit different, I got a string "/dev/bus/usb/bus/usb/001/002" > And I found the function 'devfs_vptocnp' gets the string wrongly when dealing multi slashes path string, I have remark the code as followed and put some comments > would you please take a look, and tell me what the purpose this func pass the string that way? Try this. Not tested. diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 3b80c68e309..f20b466d88b 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -284,38 +284,27 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) if (error != 0) return (error); - i = *buflen; + if (vp->v_type != VCHR && vp->v_type != VDIR) { + error = ENOENT; + goto finished; + } + dd = vp->v_data; + if (vp->v_type == VDIR && dd == dmp->dm_rootdir) { + *dvp = vp; + vref(*dvp); + goto finished; + } - if (vp->v_type == VCHR) { - i -= strlen(dd->de_cdp->cdp_c.si_name); - if (i < 0) { - error = ENOMEM; - goto finished; - } - bcopy(dd->de_cdp->cdp_c.si_name, buf + i, - strlen(dd->de_cdp->cdp_c.si_name)); - de = dd->de_dir; - } else if (vp->v_type == VDIR) { - if (dd == dmp->dm_rootdir) { - *dvp = vp; - vref(*dvp); - goto finished; - } - i -= dd->de_dirent->d_namlen; - if (i < 0) { - error = ENOMEM; - goto finished; - } - bcopy(dd->de_dirent->d_name, buf + i, - dd->de_dirent->d_namlen); - de = dd; - } else { - error = ENOENT; + i = *buflen; + i -= dd->de_dirent->d_namlen; + if (i < 0) { + error = ENOMEM; goto finished; } + bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); *buflen = i; - de = devfs_parent_dirent(de); + de = devfs_parent_dirent(dd); if (de == NULL) { error = ENOENT; goto finished; From owner-freebsd-fs@freebsd.org Thu Oct 10 17:29:00 2019 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 841F514476D; Thu, 10 Oct 2019 17:29:00 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anongoth.pl", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46pyk35c84z4M9m; Thu, 10 Oct 2019 17:28:59 +0000 (UTC) (envelope-from pkubaj@anongoth.pl) Received: from anongoth.pl (unknown [192.168.1.15]) (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) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 3DD1340057; Thu, 10 Oct 2019 19:28:47 +0200 (CEST) Date: Thu, 10 Oct 2019 19:28:45 +0200 From: Piotr Kubaj To: freebsd-current@freebsd.org, freebsd-fs@freebsd.org, freebsd-ppc@freebsd.org Subject: assertion error in ZFS Message-ID: <20191010172845.GA8968@KGPE-D16> Mail-Followup-To: freebsd-current@freebsd.org, freebsd-fs@freebsd.org, freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 46pyk35c84z4M9m X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.54 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:46.248.190.61]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-3.14)[ip: (-9.91), ipnet: 46.248.160.0/19(-4.70), asn: 47544(-1.18), country: PL(0.07)]; DMARC_POLICY_ALLOW(-0.50)[anongoth.pl,reject]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:47544, ipnet:46.248.160.0/19, country:PL]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 17:29:00 -0000 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi, I use ZFS compiled-in to the kernel in order to boot without loader. After upgrade to LLVM9, it fails to mount with: panic: solaris assert: (int32_t)n >= 0 (0xffffffffffffffff >= 0x0), file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zrlock.c, line: 115 cpuid = 16 time = 26 KDB: stack backtrace: 0xe0000000beff3c90: at kdb_backtrace+0x60 0xe0000000beff3da0: at vpanic+0x1d8 0xe0000000beff3e50: at panic+0x40 0xe0000000beff3e80: at assfail3+0x3c 0xe0000000beff3ef0: at zrl_remove+0x9c 0xe0000000beff3f20: at dbuf_read+0x73c 0xe0000000beff4080: at dnode_hold_impl+0x318 0xe0000000beff41d0: at dnode_hold+0x2c 0xe0000000beff4200: at dmu_buf_hold_noread+0x4c 0xe0000000beff4260: at dmu_buf_hold+0x3c 0xe0000000beff42b0: at zap_lockdir+0x60 0xe0000000beff4360: at zap_lookup_norm+0x78 0xe0000000beff4420: at zap_lookup+0x30 0xe0000000beff44a0: at dsl_dir_hold_obj+0x314 0xe0000000beff45b0: at dmu_objset_find_dp+0x2b8 0xe0000000beff4690: at dmu_objset_find_dp+0x7c4 0xe0000000beff46d0: at taskq_dispatch+0x12c 0xe0000000beff4700: at taskqueue_run+0x210 0xe0000000beff47d0: at taskqueue_thread_loop+0x108 0xe0000000beff4820: at fork_exit+0xc4 0xe0000000beff48c0: at fork_trampoline+0x18 0xe0000000beff48f0: at -0x4 KDB: enter: panic This is with CURRENT on powerpc64. --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEycyIeNkkgohzsoorelmbhSCDnJ0FAl2fak0ACgkQelmbhSCD nJ0PfA//dk04GCvQZ38E4Cxp0GObUNNq9L+28hNSRPcCRE1sMNR3PI8xglXj5ivC uQ0cDThlFLxMGd0kv/tAMIdGSXt+yHHz1RyP08v2zhHLHEfrwi0uMJ+8ShSaCwYK TzGdoOIGFAL5ah8cyayHCYCGjRwkAFVApNGA6tmWMV1QpuX7lPejStUnnOG6PW1O LaWcR4/MyZ2iIXugwtkX0C9pG8i2Fa9ufciuuPWZb48NJ08WajE5mrkykByabA3m Xw7nyuMRv2bGxG6DqbUR7RO2xNa+iXnvrQJ5Q8PUrOyTJwU80zyWLnk+scpw+B4U smde7Flur4SzRW/PwWGSlj7LV58ks2ZYjcRloIJl7eTMwvK7hmz/BCCNLqb21PKE D57PGMGw7K/dERnDSoMN5F8EVYFq5VtB2ay6NBndBCICMRSwd4Vcv+1qNPZam6+M 6Oeaeujyz9zF3WEu4NBG5JJpfDcSZ4LN2qQKdksjv07qcsTIJg+WA2ZiuNV20J+T W0skHqK5/SyeUOQCJhb05Z1hjYkYCjcXbDhIKtgBD7gCatjt6igVt/O5TChqtE19 Pj6CgamQL2fDgr1luIHs6yNufwbNY4+QLyp+aNwY9OWu1c59TbGkGAB2fyKAaqt8 3wn5Fv6TdK2GXPSWXDLjVAU+gsGv3fGxeZY8tFDtnxdyLiOQtj8= =ReF8 -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s-- From owner-freebsd-fs@freebsd.org Thu Oct 10 22:14:19 2019 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 8787713361A; Thu, 10 Oct 2019 22:14:19 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46q53G24QRz4dlq; Thu, 10 Oct 2019 22:14:18 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf1-f65.google.com with SMTP id r2so5541027lfn.8; Thu, 10 Oct 2019 15:14:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=bHZJC93kiqbryBzZbFbSiqNegNlCUQVMZFQFYtotYpI=; b=JZjjaSpETVjIdrf2N7RH80nz01TQXt9sSszFTeWc3OcJEkklfbmh1xFa7mJgK6WvGF lZEzQ/9UCdvISLbpUIlgHxsbdVBg5kRvduuAejHxEFyqxDaV6V65Jyd30MwQKk3ioEuU p0Xou0rs02It/31WWr8gR/dyTA5AgMAaPogx8AdLPuAHFM9IEM9vdmD3UnuIqEQ2ELwZ nozB2L7xI+PPzTp9tqHNuIxt3E0+I/9TS862OCAAvlMU4wIHIuos7Eyj2PIuPBbjTZ7T pPMMVRpjjRsIXjSUeCWtIqGB5gPfzAB57DVotiMSWFj5K754LbHsw3OZHwOXkAQj4gSO QUmw== X-Gm-Message-State: APjAAAUSIUUoj8h3OEcFDo4WjZqlQijGA70RXRx4J46stjBJeV1agzOM GU48hiWD5VRC1K6xHcJ/6Bfd3cAf8Qw= X-Google-Smtp-Source: APXvYqxsBVyb3j90ZqI1ZCHPhsuKzq+d/bps9K5SCF5bCdj1U/OGLrjQWLkGgvMdsIfHI9iD/VSHVA== X-Received: by 2002:ac2:5df0:: with SMTP id z16mr7375808lfq.36.1570745656113; Thu, 10 Oct 2019 15:14:16 -0700 (PDT) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id t16sm1632674lfp.38.2019.10.10.15.14.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Oct 2019 15:14:15 -0700 (PDT) Subject: Re: assertion error in ZFS To: freebsd-current@freebsd.org, freebsd-fs@freebsd.org, freebsd-ppc@freebsd.org References: <20191010172845.GA8968@KGPE-D16> From: Andriy Gapon Openpgp: preference=signencrypt Autocrypt: addr=avg@FreeBSD.org; prefer-encrypt=mutual; keydata= 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 Message-ID: <26a731d7-0237-9a75-6bf9-3fd190f99cc7@FreeBSD.org> Date: Fri, 11 Oct 2019 01:14:14 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191010172845.GA8968@KGPE-D16> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46q53G24QRz4dlq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of agapon@gmail.com designates 209.85.167.65 as permitted sender) smtp.mailfrom=agapon@gmail.com X-Spamd-Result: default: False [-3.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-1.16)[ip: (-0.37), ipnet: 209.85.128.0/17(-3.25), asn: 15169(-2.13), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[65.167.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FORGED_SENDER(0.30)[avg@FreeBSD.org,agapon@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[65.167.85.209.rep.mailspike.net : 127.0.0.17]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[avg@FreeBSD.org,agapon@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[96.151.72.93.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 22:14:19 -0000 On 10/10/2019 20:28, Piotr Kubaj via freebsd-fs wrote: > Hi, > > I use ZFS compiled-in to the kernel in order to boot without loader. > > After upgrade to LLVM9, it fails to mount with: > panic: solaris assert: (int32_t)n >= 0 (0xffffffffffffffff >= 0x0), file: /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zrlock.c, line: 115 > cpuid = 16 > time = 26 > KDB: stack backtrace: > 0xe0000000beff3c90: at kdb_backtrace+0x60 > 0xe0000000beff3da0: at vpanic+0x1d8 > 0xe0000000beff3e50: at panic+0x40 > 0xe0000000beff3e80: at assfail3+0x3c > 0xe0000000beff3ef0: at zrl_remove+0x9c > 0xe0000000beff3f20: at dbuf_read+0x73c > 0xe0000000beff4080: at dnode_hold_impl+0x318 > 0xe0000000beff41d0: at dnode_hold+0x2c > 0xe0000000beff4200: at dmu_buf_hold_noread+0x4c > 0xe0000000beff4260: at dmu_buf_hold+0x3c > 0xe0000000beff42b0: at zap_lockdir+0x60 > 0xe0000000beff4360: at zap_lookup_norm+0x78 > 0xe0000000beff4420: at zap_lookup+0x30 > 0xe0000000beff44a0: at dsl_dir_hold_obj+0x314 > 0xe0000000beff45b0: at dmu_objset_find_dp+0x2b8 > 0xe0000000beff4690: at dmu_objset_find_dp+0x7c4 > 0xe0000000beff46d0: at taskq_dispatch+0x12c > 0xe0000000beff4700: at taskqueue_run+0x210 > 0xe0000000beff47d0: at taskqueue_thread_loop+0x108 > 0xe0000000beff4820: at fork_exit+0xc4 > 0xe0000000beff48c0: at fork_trampoline+0x18 > 0xe0000000beff48f0: at -0x4 > KDB: enter: panic > > This is with CURRENT on powerpc64. This could be my fault. Could you please provide the known good and known bad revision? I suspect that this could be a result of my lack of experience with "strong" and "weak" cmpset on different platforms... -- Andriy Gapon From owner-freebsd-fs@freebsd.org Fri Oct 11 02:23:24 2019 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 7F12A139124; Fri, 11 Oct 2019 02:23:24 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from mx0a-00154904.pphosted.com (mx0a-00154904.pphosted.com [148.163.133.20]) (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 46qBZg1YXdz3MnF; Fri, 11 Oct 2019 02:23:22 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from pps.filterd (m0170393.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9B2JjBR020846; Thu, 10 Oct 2019 22:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=InbY9COoYyOr86DfZ/GPeE68e0G4EjQ8M70ZDt9sbzk=; b=yL0bPl3nvn78JeroKvvmgdO5Ic3nh7qXT/AZLfOs0IMaN6PvWPTSdClKnofeZME7in5K RLyXWS5I1jNy5oUepqDRCMtoYoFviNPsbQ+p3FsHaD+eWL0YPowRRUZTpBlqVLx7S41Z E5Oe/EnGHsBVft965xKx5/Vyx4zc084vUIeYMfrD3fjXP2Sgb2m7dm6kYWwMwOgJHinP iZ6LZh+bD9YhNakMSqmzKRgQrMbCRErOgwCC8uLeaN8VUdUDKW+fPhaim5xDLO+yeOL9 YNn4gRmhJfRVz9H6l0r+s/9hdi9co6L/I32ihtVJ6uuXQTPtd2ScG4G3fIVmIsMOYK74 MQ== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2vepgkccds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2019 22:23:19 -0400 Received: from pps.filterd (m0089483.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9B2Mw8r118022; Thu, 10 Oct 2019 22:23:18 -0400 Received: from ausc60pc101.us.dell.com (ausc60pc101.us.dell.com [143.166.85.206]) by mx0b-00154901.pphosted.com with ESMTP id 2vjdd8jatd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Oct 2019 22:23:18 -0400 X-LoopCount0: from 10.166.136.210 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="1479036184" From: To: CC: , , Subject: RE: a issue about getting a devfs node's fullpath Thread-Topic: a issue about getting a devfs node's fullpath Thread-Index: AQHVf4DyNH+n5oqc4Ea+l7PCusRzvadUsvRA Date: Fri, 11 Oct 2019 02:23:14 +0000 Message-ID: <54b7173c96df43689de04f848ca86de6@KULX13MDC103.APAC.DELL.COM> References: <20191010153932.GO44691@kib.kiev.ua> In-Reply-To: <20191010153932.GO44691@kib.kiev.ua> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Zhichao_Li1@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2019-10-11T02:23:12.8497933Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual; aiplabel=External Public x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.93.131.111] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_01:2019-10-10,2019-10-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=999 clxscore=1011 mlxscore=0 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110019 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 impostorscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1011 mlxscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110018 X-Rspamd-Queue-Id: 46qBZg1YXdz3MnF X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=yL0bPl3n; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Zhichao1.Li@dell.com designates 148.163.133.20 as permitted sender) smtp.mailfrom=Zhichao1.Li@dell.com X-Spamd-Result: default: False [-6.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.133.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[dell.com.dwl.dnswl.org : 127.0.9.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; IP_SCORE(-0.29)[ip: (0.05), ipnet: 148.163.133.0/24(0.02), asn: 26211(-1.45), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[20.133.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:26211, ipnet:148.163.133.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 02:23:24 -0000 Hello Thank you for your time Unfortunately it does not work, how about this way? --- a/src/sys/fs/devfs/devfs_vnops.c +++ b/src/sys/fs/devfs/devfs_vnops.c @@ -293,7 +293,14 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) } bcopy(dd->de_cdp->cdp_c.si_name, buf + i, strlen(dd->de_cdp->cdp_c.si_name)); - de =3D dd->de_dir; + /* + * when dealing with VCHR + * the element 'si_name' already + * holds the full path string + * except rootdir, so just go + * to the rootdir + */ + de =3D dmp->dm_rootdir; } else if (vp->v_type =3D=3D VDIR) { if (dd =3D=3D dmp->dm_rootdir) { *dvp =3D vp; @@ -307,13 +314,17 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) } bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); - de =3D dd; + /* + * when dealing with VDIR + * get its parent + */ + de =3D devfs_parent_dirent(dd); } else { error =3D ENOENT; goto finished; } *buflen =3D i; - de =3D devfs_parent_dirent(de); + /*no need to get another parent*/ if (de =3D=3D NULL) { error =3D ENOENT; goto finished; another thing is this func is called by many modules, I want to ensure modi= fying the func this way will not impact other modules and not bring some bu= gs, would you be so kind to help me out? thank you=20 -----Original Message----- From: Konstantin Belousov =20 Sent: Thursday, October 10, 2019 11:40 PM To: Li, Zhichao1 Cc: freebsd-fs@freebsd.org; freebsd-drivers@freebsd.org; Hu, Shunchao Subject: Re: a issue about getting a devfs node's fullpath [EXTERNAL EMAIL]=20 On Thu, Oct 10, 2019 at 05:49:55AM +0000, Zhichao1.Li@dell.com wrote: > Dear freebsd developers > I know you're swamped, so I'll be brief. > I am trying to get a node's full under /dev by calling the function 'vn_f= ullpath', when dealing with things like '/dev/null' or '/dev/usb/1.0.1', it= works well. > However when dealing a node under more than 2 sub directories (e.g. /dev/= bus/usb/001/002) which I made by calling 'make_dev_s' , it goes a little b= it different, I got a string "/dev/bus/usb/bus/usb/001/002" > And I found the function 'devfs_vptocnp' gets the string wrongly when=20 > dealing multi slashes path string, I have remark the code as followed and= put some comments would you please take a look, and tell me what the purpo= se this func pass the string that way? Try this. Not tested. diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index = 3b80c68e309..f20b466d88b 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -284,38 +284,27 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) if (error !=3D 0) return (error); =20 - i =3D *buflen; + if (vp->v_type !=3D VCHR && vp->v_type !=3D VDIR) { + error =3D ENOENT; + goto finished; + } + dd =3D vp->v_data; + if (vp->v_type =3D=3D VDIR && dd =3D=3D dmp->dm_rootdir) { + *dvp =3D vp; + vref(*dvp); + goto finished; + } =20 - if (vp->v_type =3D=3D VCHR) { - i -=3D strlen(dd->de_cdp->cdp_c.si_name); - if (i < 0) { - error =3D ENOMEM; - goto finished; - } - bcopy(dd->de_cdp->cdp_c.si_name, buf + i, - strlen(dd->de_cdp->cdp_c.si_name)); - de =3D dd->de_dir; - } else if (vp->v_type =3D=3D VDIR) { - if (dd =3D=3D dmp->dm_rootdir) { - *dvp =3D vp; - vref(*dvp); - goto finished; - } - i -=3D dd->de_dirent->d_namlen; - if (i < 0) { - error =3D ENOMEM; - goto finished; - } - bcopy(dd->de_dirent->d_name, buf + i, - dd->de_dirent->d_namlen); - de =3D dd; - } else { - error =3D ENOENT; + i =3D *buflen; + i -=3D dd->de_dirent->d_namlen; + if (i < 0) { + error =3D ENOMEM; goto finished; } + bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); *buflen =3D i; - de =3D devfs_parent_dirent(de); + de =3D devfs_parent_dirent(dd); if (de =3D=3D NULL) { error =3D ENOENT; goto finished; From owner-freebsd-fs@freebsd.org Fri Oct 11 08:28:52 2019 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 C33F61429A0; Fri, 11 Oct 2019 08:28:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46qLhM6mkqz4BB2; Fri, 11 Oct 2019 08:28:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x9B8SdJi050252 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 11 Oct 2019 11:28:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x9B8SdJi050252 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x9B8ScYm050251; Fri, 11 Oct 2019 11:28:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 11 Oct 2019 11:28:38 +0300 From: Konstantin Belousov To: Zhichao1.Li@dell.com Cc: freebsd-fs@freebsd.org, freebsd-drivers@freebsd.org, Shunchao.Hu@dell.com Subject: Re: a issue about getting a devfs node's fullpath Message-ID: <20191011082838.GR44691@kib.kiev.ua> References: <20191010153932.GO44691@kib.kiev.ua> <54b7173c96df43689de04f848ca86de6@KULX13MDC103.APAC.DELL.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54b7173c96df43689de04f848ca86de6@KULX13MDC103.APAC.DELL.COM> User-Agent: Mutt/1.12.2 (2019-09-21) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46qLhM6mkqz4BB2 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-2.65), ipnet: 2001:470::/32(-4.57), asn: 6939(-3.40), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 08:28:52 -0000 On Fri, Oct 11, 2019 at 02:23:14AM +0000, Zhichao1.Li@dell.com wrote: > Hello > Thank you for your time > Unfortunately it does not work, how about this way? It does not work in which way ? I tried it and it worked as expected. Your patch is wrong, VOP_VPTOCNP() must return parent vnode, if any. > > --- a/src/sys/fs/devfs/devfs_vnops.c > +++ b/src/sys/fs/devfs/devfs_vnops.c > @@ -293,7 +293,14 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > } > bcopy(dd->de_cdp->cdp_c.si_name, buf + i, > strlen(dd->de_cdp->cdp_c.si_name)); > - de = dd->de_dir; > + /* > + * when dealing with VCHR > + * the element 'si_name' already > + * holds the full path string > + * except rootdir, so just go > + * to the rootdir > + */ > + de = dmp->dm_rootdir; > } else if (vp->v_type == VDIR) { > if (dd == dmp->dm_rootdir) { > *dvp = vp; > @@ -307,13 +314,17 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > } > bcopy(dd->de_dirent->d_name, buf + i, > dd->de_dirent->d_namlen); > - de = dd; > + /* > + * when dealing with VDIR > + * get its parent > + */ > + de = devfs_parent_dirent(dd); > } else { > error = ENOENT; > goto finished; > } > *buflen = i; > - de = devfs_parent_dirent(de); > + /*no need to get another parent*/ > if (de == NULL) { > error = ENOENT; > goto finished; > > another thing is this func is called by many modules, I want to ensure modifying the func this way will not impact other modules and not bring some bugs, would you be so kind to help me out? > > thank you > > -----Original Message----- > From: Konstantin Belousov > Sent: Thursday, October 10, 2019 11:40 PM > To: Li, Zhichao1 > Cc: freebsd-fs@freebsd.org; freebsd-drivers@freebsd.org; Hu, Shunchao > Subject: Re: a issue about getting a devfs node's fullpath > > > [EXTERNAL EMAIL] > > On Thu, Oct 10, 2019 at 05:49:55AM +0000, Zhichao1.Li@dell.com wrote: > > Dear freebsd developers > > I know you're swamped, so I'll be brief. > > I am trying to get a node's full under /dev by calling the function 'vn_fullpath', when dealing with things like '/dev/null' or '/dev/usb/1.0.1', it works well. > > However when dealing a node under more than 2 sub directories (e.g. /dev/bus/usb/001/002) which I made by calling 'make_dev_s' , it goes a little bit different, I got a string "/dev/bus/usb/bus/usb/001/002" > > And I found the function 'devfs_vptocnp' gets the string wrongly when > > dealing multi slashes path string, I have remark the code as followed and put some comments would you please take a look, and tell me what the purpose this func pass the string that way? > > Try this. Not tested. > > diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 3b80c68e309..f20b466d88b 100644 > --- a/sys/fs/devfs/devfs_vnops.c > +++ b/sys/fs/devfs/devfs_vnops.c > @@ -284,38 +284,27 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > if (error != 0) > return (error); > > - i = *buflen; > + if (vp->v_type != VCHR && vp->v_type != VDIR) { > + error = ENOENT; > + goto finished; > + } > + > dd = vp->v_data; > + if (vp->v_type == VDIR && dd == dmp->dm_rootdir) { > + *dvp = vp; > + vref(*dvp); > + goto finished; > + } > > - if (vp->v_type == VCHR) { > - i -= strlen(dd->de_cdp->cdp_c.si_name); > - if (i < 0) { > - error = ENOMEM; > - goto finished; > - } > - bcopy(dd->de_cdp->cdp_c.si_name, buf + i, > - strlen(dd->de_cdp->cdp_c.si_name)); > - de = dd->de_dir; > - } else if (vp->v_type == VDIR) { > - if (dd == dmp->dm_rootdir) { > - *dvp = vp; > - vref(*dvp); > - goto finished; > - } > - i -= dd->de_dirent->d_namlen; > - if (i < 0) { > - error = ENOMEM; > - goto finished; > - } > - bcopy(dd->de_dirent->d_name, buf + i, > - dd->de_dirent->d_namlen); > - de = dd; > - } else { > - error = ENOENT; > + i = *buflen; > + i -= dd->de_dirent->d_namlen; > + if (i < 0) { > + error = ENOMEM; > goto finished; > } > + bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); > *buflen = i; > - de = devfs_parent_dirent(de); > + de = devfs_parent_dirent(dd); > if (de == NULL) { > error = ENOENT; > goto finished; From owner-freebsd-fs@freebsd.org Fri Oct 11 09:21:57 2019 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 B55D6144FA2; Fri, 11 Oct 2019 09:21:57 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.20]) (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 46qMsc59PHz4Fnw; Fri, 11 Oct 2019 09:21:56 +0000 (UTC) (envelope-from Zhichao1.Li@dell.com) Received: from pps.filterd (m0170398.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9B9AMh1000485; Fri, 11 Oct 2019 05:21:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=yLSU1q52zL6Lo2hsxDf/UXeQm1y1XY5Uz5jEuj7bXYg=; b=HCSYckYTgP1ZptjdzzKwo7wptIwMKW6DkufxDGWWFsa2QPa/XPbTURMixOH3WIlm7B6q NCF0A2M6kwVS1xi3ZukmcUw65T1vvUkvqEEQM3pXXDrfLhS2v8BXDc/u8OynYk4e76Wr MTLoADmjnrqwdkg/sew+b/GskduCjfo4Ene2dSOPlsUNoDo+wAFUMaPT+HVeSr0FD1um S9sqhkvFswR3XQ6ATnAfU1U2emEvVypTAginCaQ8mzh2gkPljXZg8KK5Kasyla4+zvPE yLNLmUPovgm/D0l3ZjtG1V2v91K4ikFqupF86H1EaqZZO2tNVZaeG8/D/e413GUiMD5d dQ== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0b-00154904.pphosted.com with ESMTP id 2vepdawbju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 05:21:55 -0400 Received: from pps.filterd (m0144102.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9B97rHl045782; Fri, 11 Oct 2019 05:21:55 -0400 Received: from ausc60pc101.us.dell.com (ausc60pc101.us.dell.com [143.166.85.206]) by mx0b-00154901.pphosted.com with ESMTP id 2vjp498uex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Oct 2019 05:21:55 -0400 X-LoopCount0: from 10.166.135.96 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="1479216523" From: To: CC: , , Subject: RE: a issue about getting a devfs node's fullpath Thread-Topic: a issue about getting a devfs node's fullpath Thread-Index: AQHVf4DyNH+n5oqc4Ea+l7PCusRzvadUsvRA///jsACAAJR8UA== Date: Fri, 11 Oct 2019 09:21:49 +0000 Message-ID: <512acd5891c94cb49bba6df379202bc6@KULX13MDC103.APAC.DELL.COM> References: <20191010153932.GO44691@kib.kiev.ua> <54b7173c96df43689de04f848ca86de6@KULX13MDC103.APAC.DELL.COM> <20191011082838.GR44691@kib.kiev.ua> In-Reply-To: <20191011082838.GR44691@kib.kiev.ua> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=Zhichao_Li1@Dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2019-10-11T09:21:48.1806758Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual; aiplabel=External Public x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.93.131.111] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_06:2019-10-10,2019-10-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110088 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 spamscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 lowpriorityscore=0 bulkscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110088 X-Rspamd-Queue-Id: 46qMsc59PHz4Fnw X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dell.com header.s=smtpout1 header.b=HCSYckYT; dmarc=pass (policy=none) header.from=dell.com; spf=pass (mx1.freebsd.org: domain of Zhichao1.Li@dell.com designates 148.163.137.20 as permitted sender) smtp.mailfrom=Zhichao1.Li@dell.com X-Spamd-Result: default: False [-6.40 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[dell.com:s=smtpout1]; HAS_XOIP(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_FIVE(0.00)[5]; R_SPF_ALLOW(-0.20)[+ip4:148.163.137.20]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[dell.com:d:+,dell.com:s:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dell.com:+]; DMARC_POLICY_ALLOW(-0.50)[dell.com,none]; FROM_NO_DN(0.00)[]; IP_SCORE(-0.30)[ip: (0.00), ipnet: 148.163.137.0/24(0.01), asn: 22843(-1.44), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_LOW(-0.10)[20.137.163.148.list.dnswl.org : 127.0.3.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22843, ipnet:148.163.137.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[dell.com.dwl.dnswl.org : 127.0.9.0] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 09:21:57 -0000 sorry my bad, your pitch works exactly, thank you so much -----Original Message----- From: Konstantin Belousov =20 Sent: Friday, October 11, 2019 4:29 PM To: Li, Zhichao1 Cc: freebsd-fs@freebsd.org; freebsd-drivers@freebsd.org; Hu, Shunchao Subject: Re: a issue about getting a devfs node's fullpath [EXTERNAL EMAIL]=20 On Fri, Oct 11, 2019 at 02:23:14AM +0000, Zhichao1.Li@dell.com wrote: > Hello > Thank you for your time > Unfortunately it does not work, how about this way? It does not work in which way ? I tried it and it worked as expected. Your patch is wrong, VOP_VPTOCNP() must return parent vnode, if any. >=20 > --- a/src/sys/fs/devfs/devfs_vnops.c > +++ b/src/sys/fs/devfs/devfs_vnops.c > @@ -293,7 +293,14 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > } > bcopy(dd->de_cdp->cdp_c.si_name, buf + i, > strlen(dd->de_cdp->cdp_c.si_name)); > - de =3D dd->de_dir; > + /* > + * when dealing with VCHR > + * the element 'si_name' already > + * holds the full path string > + * except rootdir, so just go > + * to the rootdir > + */ > + de =3D dmp->dm_rootdir; > } else if (vp->v_type =3D=3D VDIR) { > if (dd =3D=3D dmp->dm_rootdir) { > *dvp =3D vp; > @@ -307,13 +314,17 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > } > bcopy(dd->de_dirent->d_name, buf + i, > dd->de_dirent->d_namlen); > - de =3D dd; > + /* > + * when dealing with VDIR > + * get its parent > + */ > + de =3D devfs_parent_dirent(dd); > } else { > error =3D ENOENT; > goto finished; > } > *buflen =3D i; > - de =3D devfs_parent_dirent(de); > + /*no need to get another parent*/ > if (de =3D=3D NULL) { > error =3D ENOENT; > goto finished; >=20 > another thing is this func is called by many modules, I want to ensure mo= difying the func this way will not impact other modules and not bring some = bugs, would you be so kind to help me out? >=20 > thank you >=20 > -----Original Message----- > From: Konstantin Belousov > Sent: Thursday, October 10, 2019 11:40 PM > To: Li, Zhichao1 > Cc: freebsd-fs@freebsd.org; freebsd-drivers@freebsd.org; Hu, Shunchao=20 > > Subject: Re: a issue about getting a devfs node's fullpath >=20 >=20 > [EXTERNAL EMAIL] >=20 > On Thu, Oct 10, 2019 at 05:49:55AM +0000, Zhichao1.Li@dell.com wrote: > > Dear freebsd developers > > I know you're swamped, so I'll be brief. > > I am trying to get a node's full under /dev by calling the function 'vn= _fullpath', when dealing with things like '/dev/null' or '/dev/usb/1.0.1', = it works well. > > However when dealing a node under more than 2 sub directories (e.g. /de= v/bus/usb/001/002) which I made by calling 'make_dev_s' , it goes a little= bit different, I got a string "/dev/bus/usb/bus/usb/001/002" > > And I found the function 'devfs_vptocnp' gets the string wrongly=20 > > when dealing multi slashes path string, I have remark the code as follo= wed and put some comments would you please take a look, and tell me what th= e purpose this func pass the string that way? >=20 > Try this. Not tested. >=20 > diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c=20 > index 3b80c68e309..f20b466d88b 100644 > --- a/sys/fs/devfs/devfs_vnops.c > +++ b/sys/fs/devfs/devfs_vnops.c > @@ -284,38 +284,27 @@ devfs_vptocnp(struct vop_vptocnp_args *ap) > if (error !=3D 0) > return (error); > =20 > - i =3D *buflen; > + if (vp->v_type !=3D VCHR && vp->v_type !=3D VDIR) { > + error =3D ENOENT; > + goto finished; > + } > + > dd =3D vp->v_data; > + if (vp->v_type =3D=3D VDIR && dd =3D=3D dmp->dm_rootdir) { > + *dvp =3D vp; > + vref(*dvp); > + goto finished; > + } > =20 > - if (vp->v_type =3D=3D VCHR) { > - i -=3D strlen(dd->de_cdp->cdp_c.si_name); > - if (i < 0) { > - error =3D ENOMEM; > - goto finished; > - } > - bcopy(dd->de_cdp->cdp_c.si_name, buf + i, > - strlen(dd->de_cdp->cdp_c.si_name)); > - de =3D dd->de_dir; > - } else if (vp->v_type =3D=3D VDIR) { > - if (dd =3D=3D dmp->dm_rootdir) { > - *dvp =3D vp; > - vref(*dvp); > - goto finished; > - } > - i -=3D dd->de_dirent->d_namlen; > - if (i < 0) { > - error =3D ENOMEM; > - goto finished; > - } > - bcopy(dd->de_dirent->d_name, buf + i, > - dd->de_dirent->d_namlen); > - de =3D dd; > - } else { > - error =3D ENOENT; > + i =3D *buflen; > + i -=3D dd->de_dirent->d_namlen; > + if (i < 0) { > + error =3D ENOMEM; > goto finished; > } > + bcopy(dd->de_dirent->d_name, buf + i, dd->de_dirent->d_namlen); > *buflen =3D i; > - de =3D devfs_parent_dirent(de); > + de =3D devfs_parent_dirent(dd); > if (de =3D=3D NULL) { > error =3D ENOENT; > goto finished; From owner-freebsd-fs@freebsd.org Sat Oct 12 19:46:14 2019 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 652781430C4 for ; Sat, 12 Oct 2019 19:46:14 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [64.62.153.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "anubis.delphij.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46rFgT1cN4z4TT8; Sat, 12 Oct 2019 19:46:12 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from odin.corp.delphij.net (unknown [IPv6:2601:646:8600:d04a:90a6:3294:ad98:9e5d]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by anubis.delphij.net (Postfix) with ESMTPSA id 0A2463FAB8; Sat, 12 Oct 2019 12:36:38 -0700 (PDT) Reply-To: d@delphij.net To: "freebsd-fs@freebsd.org" Cc: Andriy Gapon From: Xin Li Autocrypt: addr=delphij@delphij.net; prefer-encrypt=mutual; keydata= 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 Subject: solaris assert: (dn->dn_id_flags & DN_ID_NEW_EXIST) == 0 Message-ID: Date: Sat, 12 Oct 2019 12:36:33 -0700 User-Agent: Thunderbird MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SCkIGA0cilvxq97DYvw2f5gfMAsEXrXDg" X-Rspamd-Queue-Id: 46rFgT1cN4z4TT8 X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.45 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; HAS_ATTACHMENT(0.00)[]; HAS_REPLYTO(0.00)[d@delphij.net]; DKIM_TRACE(0.00)[delphij.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[delphij.net,reject]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; IP_SCORE(-2.36)[ip: (-9.88), ipnet: 64.62.128.0/18(1.56), asn: 6939(-3.40), country: US(-0.05)]; ASN(0.00)[asn:6939, ipnet:64.62.128.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[delphij.net:s=m7e2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2019 19:46:14 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SCkIGA0cilvxq97DYvw2f5gfMAsEXrXDg Content-Type: multipart/mixed; boundary="YfmcSctTh1zQkezDGc7kwqAo3oUpVNbAP"; protected-headers="v1" From: Xin Li Reply-To: d@delphij.net To: "freebsd-fs@freebsd.org" Cc: Andriy Gapon Message-ID: Subject: solaris assert: (dn->dn_id_flags & DN_ID_NEW_EXIST) == 0 --YfmcSctTh1zQkezDGc7kwqAo3oUpVNbAP Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Not sure how this was triggered (yet; this is mostly an idle system) but will try to find out. Known good revision: r352698M FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) Current revision that exhibits the issue: r353450M FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) =3D=3D=3D Unread portion of the kernel message buffer: panic: solaris assert: (dn->dn_id_flags & DN_ID_NEW_EXIST) =3D=3D 0, file= : /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c, line: 52= 4 cpuid =3D 7 time =3D 1570907936 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe01021e4230 vpanic() at vpanic+0x1c7/frame 0xfffffe01021e42a0 panic() at panic+0x43/frame 0xfffffe01021e4300 assfail() at assfail+0x1a/frame 0xfffffe01021e4310 dnode_destroy() at dnode_destroy+0x56/frame 0xfffffe01021e4350 dnode_hold_impl() at dnode_hold_impl+0x1467/frame 0xfffffe01021e4450 dmu_object_alloc_impl() at dmu_object_alloc_impl+0x438/frame 0xfffffe01021e4550 zfs_mknode() at zfs_mknode+0x2e3/frame 0xfffffe01021e46a0 zfs_freebsd_create() at zfs_freebsd_create+0x95f/frame 0xfffffe01021e4780= VOP_CREATE_APV() at VOP_CREATE_APV+0x8b/frame 0xfffffe01021e47b0 vn_open_cred() at vn_open_cred+0x521/frame 0xfffffe01021e4910 kern_openat() at kern_openat+0x2f3/frame 0xfffffe01021e4a90 filemon_wrapper_openat() at filemon_wrapper_openat+0x20/frame 0xfffffe01021e4ac0 amd64_syscall() at amd64_syscall+0x44b/frame 0xfffffe01021e4bf0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe01021e4b= f0 --- syscall (499, FreeBSD ELF64, filemon_wrapper_openat), rip =3D 0x80047ee4a, rsp =3D 0x7fffffffa868, rbp =3D 0x7fffffffadb0 --- Uptime: 43m42s Dumping 3805 out of 32709 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% --YfmcSctTh1zQkezDGc7kwqAo3oUpVNbAP-- --SCkIGA0cilvxq97DYvw2f5gfMAsEXrXDg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJdoitEAAoJEEB5f3yV9INPO9oP+wcBFeA5f28w0dieedr6dF3s RbnZxjVxYzXY3/yIr3huQ0L94L478oZpm2Oqf8Vj2lH16Qn02wiTWLD6bgn/lRIz iBW7eFp3GPJFofGbkJ57IqbsHWU0UCpxBnlP1wYCeb7BZEML4/ytvbGMQtwS6mrt NDP9URTfZwp7gFf5QgQvdf1YSUzp31Sf/RNi9FBN0K36Od8RjaCrkhR+Yo2qMCkS 7xx4kS/QRTWnQXa72ir2T1EgEAsnnx49RbUtAhfPydLtxzroafWKbT2NGA8lFE8k nR7d+5Vwmti1Wp67zmyL8CkQ/5dVMv3Z2RnHgiTbvHZH39K+P4k1mqde0JWyv6Px cfvqXpWjdOqFwsDA1k4uoL+e8BB2qiCDdHycEYv0G6IM7HWU0R5Lyr/QVXUChq5i QGKwBPfQuGwUoN3V5hWDPNNWr6L8YX6vHEDtAMfWT9AdE9SPGX3L+J7heb3CRJ+F 4WeWHZeAVL15ggp7DG+wDMI9Gggmev/a66Y6EOK3VqzI5gwevKQP314KuGR+oJhN SyiNzfOFpR68k5eix1/8FtKzN2E9CgXbgn9tPSlnB7nbAk3Ws6y0cw2/XIpV7FGa eYQsMUoQ34NyYC9aEnsWrnEa2sBkQJhOVVJRTdSYi9RMJHkAKaM/XU4KPmVpnREK R/cGD5R7MsOhk/lg3ZhT =kJ41 -----END PGP SIGNATURE----- --SCkIGA0cilvxq97DYvw2f5gfMAsEXrXDg--