summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-15 20:20:16 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-01-15 20:20:16 +0100
commitec2dd02e2a2748134f9c8347e12b802b42dea6b5 (patch)
tree657c7c50234f9c559ac7cb65cc2253361e29c609 /udev/udevadm-test.c
parent64b333fdcc69798ab7874cf042d590b3f2d990b5 (diff)
udevadm: test - remove --force option
Since a while we change the database with a "test" run, but do not update the node and symlinks. We need to "force" all the time, to keep things in sync.
Diffstat (limited to 'udev/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index 2c8e0bff98..9d505146cf 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -33,7 +33,6 @@
int udevadm_test(struct udev *udev, int argc, char *argv[])
{
char filename[UTIL_PATH_SIZE];
- int force = 0;
const char *action = "add";
const char *syspath = NULL;
struct udev_event *event;
@@ -44,7 +43,6 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
static const struct option options[] = {
{ "action", required_argument, NULL, 'a' },
- { "force", no_argument, NULL, 'f' },
{ "help", no_argument, NULL, 'h' },
{}
};
@@ -63,13 +61,9 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
case 'a':
action = optarg;
break;
- case 'f':
- force = 1;
- break;
case 'h':
printf("Usage: udevadm test OPTIONS <syspath>\n"
" --action=<string> set action string\n"
- " --force don't skip node/link creation\n"
" --help print this help text\n\n");
exit(0);
default:
@@ -116,11 +110,6 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
udev_device_set_action(dev, action);
event = udev_event_new(dev);
-
- /* simulate node creation with test flag */
- if (!force)
- event->test = 1;
-
err = udev_event_execute_rules(event, rules);
if (udev_device_get_event_timeout(dev) >= 0)