Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2019 12:25:54 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Nikos Vassiliadis <nvass@gmx.com>
Cc:        FreeBSD-STABLE Mailing List <freeBSd-stable@freebsd.org>
Subject:   Re: devd rule wierd output
Message-ID:  <CANCZdfppZHQTcdCgwO1ruZDW5XwAewQFVj=5RRtdGBf%2BrbMROw@mail.gmail.com>
In-Reply-To: <2c82b556-59e8-cee1-19ab-7b16666ee58a@gmx.com>
References:  <2c82b556-59e8-cee1-19ab-7b16666ee58a@gmx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 5, 2019 at 12:08 PM Nikos Vassiliadis <nvass@gmx.com> wrote:

> Hi,
>
> I have this in my devd rules:
> > 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'";
> > };
>
> While this is working OK on FreeBSD-10, on FreeBSD-12 I noticed that
> $pool_name is different. FreeBSD-10:
> Sep  5 20:35:56 clio ZFS: zpool clio started scrubbing
> FreeBSD-12:
> Sep  5 20:47:35 aurora ZFS[1302]: zpool $aurora-os started scrubbing
>
> While it assigns the value, it weirdly includes a dollar sign
> at the front.
>
> Thoughts?
> Should I open a PR?
>

Please file a PR.

Ideally, if you could connect to /var/run/devd.pipe before starting the
scrub and including the output on 10 and 12, that would be great.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfppZHQTcdCgwO1ruZDW5XwAewQFVj=5RRtdGBf%2BrbMROw>