From: Daan De Meyer Date: Sat, 7 May 2022 13:53:52 +0000 (+0200) Subject: core/device: Log when we skip device unit creation for symlink X-Git-Tag: v251-rc3~28^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f8287455891744b04b86a856434247cf9c7a5cb;p=thirdparty%2Fsystemd.git core/device: Log when we skip device unit creation for symlink --- diff --git a/src/core/device.c b/src/core/device.c index 1c7dde2f226..158a61b49c5 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -588,8 +588,10 @@ static void device_process_new(Manager *m, sd_device *dev, const char *sysfs) { * node major/minor */ if (stat(p, &st) >= 0 && ((!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) || - st.st_rdev != devnum)) + st.st_rdev != devnum)) { + log_device_debug(dev, "Skipping device unit creation for symlink %s not owned by device", p); continue; + } (void) device_setup_unit(m, dev, p, false); }