On Thu, Sep 5, 2019 at 12:08 PM Nikos Vassiliadis <nvass at 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