From owner-freebsd-bugs@freebsd.org Sun Sep 8 09:07:02 2019 Return-Path: Delivered-To: freebsd-bugs@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 1A52EED5ED for ; Sun, 8 Sep 2019 09:07:02 +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 46R55d5WMTz4flY for ; Sun, 8 Sep 2019 09:07:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BB487ED5EC; Sun, 8 Sep 2019 09:07:01 +0000 (UTC) Delivered-To: bugs@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 BB113ED5EB for ; Sun, 8 Sep 2019 09:07:01 +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 46R55d4X12z4flW for ; Sun, 8 Sep 2019 09:07:01 +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 7AA0C1BA2C for ; Sun, 8 Sep 2019 09:07:01 +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 x88971qS036334 for ; Sun, 8 Sep 2019 09:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x88971WV036326 for bugs@FreeBSD.org; Sun, 8 Sep 2019 09:07:01 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: bugs@FreeBSD.org Subject: [Bug 240411] devd behaves odd when action uses single quotes Date: Sun, 08 Sep 2019 09:07:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: nvass@gmx.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2019 09:07:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240411 Bug ID: 240411 Summary: devd behaves odd when action uses single quotes Product: Base System Version: 12.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: nvass@gmx.com Using this rule on FreeBSD-12: notify 10 { match "system" "ZFS"; match "type" "misc.fs.zfs.scrub_start"; action "touch /var/run/scrub_$pool_name; logger -t ZFS 'zpool $pool_name started scrubbing'"; }; notify 10 { match "system" "ZFS"; match "type" "misc.fs.zfs.scrub_finish"; action "rm /var/run/scrub_$pool_name; logger -t ZFS 'zpool $pool_na= me finished scrubbing'"; }; creates these messages in /var/log/messages Sep 8 11:51:35 aurora ZFS[12797]: vdev state changed, pool_guid=3D$5355245379867352521 vdev_guid=3D$1907996185387027531 Sep 8 11:51:35 aurora ZFS[12798]: vdev state changed, pool_guid=3D$5355245379867352521 vdev_guid=3D$9030209902286509774 Sep 8 11:51:35 aurora ZFS[12799]: vdev state changed, pool_guid=3D$5355245379867352521 vdev_guid=3D$2872996488705391350 Sep 8 11:51:35 aurora ZFS[12800]: vdev state changed, pool_guid=3D$5355245379867352521 vdev_guid=3D$13633596582270114039 Sep 8 11:51:35 aurora ZFS[12801]: zpool $aurora-os started scrubbing The pool name should be aurora-os without the leading dollar sign. This only happens when variables are enclosed in single quotes. The same rule behaves correctly on earlier versions.=20 /var/run/devd.pipe on FBSD-12: !system=3DZFS subsystem=3DZFS type=3Dresource.fs.zfs.statechange version= =3D0 class=3Dresource.fs.zfs.statechange pool_guid=3D5355245379867352521 vdev_guid=3D1907996185387027531 !system=3DZFS subsystem=3DZFS type=3Dresource.fs.zfs.statechange version= =3D0 class=3Dresource.fs.zfs.statechange pool_guid=3D5355245379867352521 vdev_guid=3D9030209902286509774 !system=3DZFS subsystem=3DZFS type=3Dresource.fs.zfs.statechange version= =3D0 class=3Dresource.fs.zfs.statechange pool_guid=3D5355245379867352521 vdev_guid=3D2872996488705391350 !system=3DZFS subsystem=3DZFS type=3Dresource.fs.zfs.statechange version= =3D0 class=3Dresource.fs.zfs.statechange pool_guid=3D5355245379867352521 vdev_guid=3D13633596582270114039 !system=3DZFS subsystem=3DZFS type=3Dmisc.fs.zfs.scrub_start pool_name=3Da= urora-os pool_guid=3D5355245379867352521 !system=3DZFS subsystem=3DZFS type=3Dmisc.fs.zfs.history_event pool_name= =3Daurora-os pool_guid=3D5355245379867352521 history_hostname=3Daurora.local history_internal_str=3Dfunc=3D1 mintxg=3D0 maxtxg=3D1064734 history_interna= l_name=3Dscan setup history_txg=3D1064734 history_time=3D1567933234 /var/run/devd.pipe on FBSD-10: !system=3DZFS subsystem=3DZFS type=3Dmisc.fs.zfs.scrub_start pool_name=3Dc= lio pool_guid=3D1203689305036940146 --=20 You are receiving this mail because: You are the assignee for the bug.=