From e3e7358137a35849f81a8e18ca548ded22a2b5cc Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 21 Aug 2006 02:38:48 +0200 Subject: [PATCH 1/1] db: don't create a db file for only a node name to store --- udev_db.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/udev_db.c b/udev_db.c index c3034f503..86a3ea7a3 100644 --- a/udev_db.c +++ b/udev_db.c @@ -81,8 +81,7 @@ int udev_db_add_device(struct udevice *udev) * create only a symlink with the name as the target * if we don't have any interesting data to remember */ - if (strcmp(udev->name, udev->dev->kernel) == 0 && - list_empty(&udev->symlink_list) && list_empty(&udev->env_list) && + if (list_empty(&udev->symlink_list) && list_empty(&udev->env_list) && !udev->partitions && !udev->ignore_remove) { dbg("nothing interesting to store, create symlink"); unlink(filename); -- 2.30.2