[rdma: 5/9] udev rules: update the NAME= syntax to SYMLINK+=

Doug Ledford dledford at fedoraproject.org
Tue Aug 3 06:53:22 UTC 2010


commit eaf08a83ffa6663f9e87a574a6678c3ed1e7943e
Author: Doug Ledford <dledford at redhat.com>
Date:   Mon Aug 2 23:51:47 2010 -0400

    udev rules: update the NAME= syntax to SYMLINK+=
    
    udev emits warnings via syslog over our use of the NAME= option in the
    rules file to create devices in /dev/infiniband.  Update the rules to
    use SYMLINK+= instead as that will leave the kernel provided device name
    in /dev and create our symlinks in /dev/infiniband, which makes udev
    happy and kills off the error messages in /var/log/messages.

 rdma.90-rdma.rules |   14 +++++++-------
 rdma.spec          |    5 ++++-
 2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/rdma.90-rdma.rules b/rdma.90-rdma.rules
index 452cb98..d4e1a97 100644
--- a/rdma.90-rdma.rules
+++ b/rdma.90-rdma.rules
@@ -1,7 +1,7 @@
-KERNEL=="umad*", NAME="infiniband/%k"
-KERNEL=="issm*", NAME="infiniband/%k"
-KERNEL=="ucm*", NAME="infiniband/%k", MODE="0666"
-KERNEL=="uverbs*", NAME="infiniband/%k", MODE="0666"
-KERNEL=="uat", NAME="infiniband/%k", MODE="0666"
-KERNEL=="ucma", NAME="infiniband/%k", MODE="0666"
-KERNEL=="rdma_cm", NAME="infiniband/%k", MODE="0666"
+KERNEL=="umad*", SYMLINK+="infiniband/%k"
+KERNEL=="issm*", SYMLINK+="infiniband/%k"
+KERNEL=="ucm*", SYMLINK+="infiniband/%k", MODE="0666"
+KERNEL=="uverbs*", SYMLINK+="infiniband/%k", MODE="0666"
+KERNEL=="uat", SYMLINK+="infiniband/%k", MODE="0666"
+KERNEL=="ucma", SYMLINK+="infiniband/%k", MODE="0666"
+KERNEL=="rdma_cm", SYMLINK+="infiniband/%k", MODE="0666"
diff --git a/rdma.spec b/rdma.spec
index 6141b7a..cc33bb5 100644
--- a/rdma.spec
+++ b/rdma.spec
@@ -6,7 +6,7 @@
 Summary: Infiniband/iWARP Kernel Module Initializer
 Name: rdma
 Version: 1.0
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv2+
 Group: System Environment/Base
 Source0: rdma.conf
@@ -62,6 +62,9 @@ fi
 %{_sysconfdir}/sysconfig/network-scripts/ifup-ib
 
 %changelog
+* Mon Aug 02 2010 Doug Ledford <dledford at redhat.com> - 1.0-8
+- Update udev rules syntax to eliminate warnings emitted via syslog (bz603264)
+
 * Thu Feb 25 2010 Doug Ledford <dledford at redhat.com> - 1.0-7
 - Minor tweak to rdma.init to silence udev warnings (bz567981)
 


More information about the scm-commits mailing list