Re: [PATCH 5/5] nodedev: Only set up mdevctl monitors if mdevctl.d exist

2021-04-12 Thread Pavel Hrdina
On Mon, Apr 12, 2021 at 06:22:24PM +0200, Michal Privoznik wrote: > During its initialization, the nodedev driver tries to set up > monitors for /etc/mdevctl.d directory, so that it can register > mdevs as they come and go. However, if the file doesn't exist > there is nothing to monitor and theref

[PATCH 5/5] nodedev: Only set up mdevctl monitors if mdevctl.d exist

2021-04-12 Thread Michal Privoznik
During its initialization, the nodedev driver tries to set up monitors for /etc/mdevctl.d directory, so that it can register mdevs as they come and go. However, if the file doesn't exist there is nothing to monitor and therefore we can exit early. In fact, we have to otherwise monitorFileRecursivel