mdev: add a comment. no code changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 6 Feb 2012 00:00:00 +0000 (01:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 6 Feb 2012 00:00:00 +0000 (01:00 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mdev.c

index 976568814f53ea9828d41939526eb4eb3cdd01af..67de52d06b94969fd70f0cf9cc3690bd0f60efcb 100644 (file)
@@ -565,8 +565,12 @@ static void make_device(char *path, int delete)
                                chown(node_name, rule->ugid.uid, rule->ugid.gid);
                        }
                        if (ENABLE_FEATURE_MDEV_RENAME && alias) {
-                               if (aliaslink == '>')
+                               if (aliaslink == '>') {
+//TODO: on devtmpfs, device_name already exists and symlink() fails.
+//End result is that instead of symlink, we have two nodes.
+//What should be done?
                                        symlink(node_name, device_name);
+                               }
                        }
                }