On Fri, Dec 10, 2021 at 2:34 PM Vishal Verma <[email protected]> wrote: > > Install a systemd service that calls "daxctl-reconfigure-device > --check-config" with a daxctl device passed in to it via the > environment. > > Install a udev rule that is triggered for every daxctl device, and > triggers the above oneshot systemd service. > > On boot, whenever a daxctl device is found, udev triggers a > device-specific systemd service called, for example: > > [email protected] > > This initiates a daxctl-reconfigure-device with a config lookup for the > 'dax0.0' device. If the config has a '[reconfigure-device <unique_id>]' > section, it uses the information in that to set the operating mode of > the device. > > If any device is in an unexpected status, 'journalctl' can be used to > view the reconfiguration log for that device, for example: > > journalctl --unit [email protected] > > Update the RPM spec file to include the newly added files to the RPM > build. > > Cc: QI Fuli <[email protected]> > Cc: Dan Williams <[email protected]> > Signed-off-by: Vishal Verma <[email protected]>
LGTM. I don't know if udev rule numbering is correct, or not, but I suspect the distros will tell us or fix it up in the distro package. Reviewed-by: Dan Williams <[email protected]>
