mdev: add a comment. no code changes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-02-06 01:00:00 +01:00
parent bbf1e3c144
commit 638dbc34b3

View 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);
}
}
}