[Bug 278012] No physical path in event triggered by "geli attach"

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 Jul 2024 13:41:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278012

--- Comment #1 from Goran Mekić <meka@tilda.center> ---
workaround: sysrc devd_flags+=\\-n

For some reason when if you run "zfsd -d" instead of "zfsd" it works. Also, if
"daemon(0,0)" in zfsd code is replaced with "daemon(0,1)" fixes this bug.
Making devd daemonize before parsing pending events also fixes this issue,
hence the workaround. I don't know what std{in,out,err} have to do with events,
though. Running "devd -d" reveals that after

Processing event '!system=GEOM subsystem=DEV type=CREATE
cdev=multipath/mp_JB1_S60.eli

comes

Processing event '!system=DEVFS subsystem=CDEV type=DESTROY cdev=pts/10

I'm not sure it is related, but it is the only thing related to terminal in my
zfsd/devd research.

-- 
You are receiving this mail because:
You are the assignee for the bug.